Skip to content

Commit

Permalink
Add back cache busting
Browse files Browse the repository at this point in the history
  • Loading branch information
steppi committed Jan 11, 2024
1 parent cdcbec8 commit f4b77fc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jupyterlite_sphinx/jupyterlite_sphinx.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ window.tryExamplesHideIframe = (examplesContainerId, iframeParentContainerId) =>


window.checkTryExamplesIgnore = (ignoreFilePath, currentPagePath) => {
fetch(ignoreFilePath)
// Add a timestamp as query parameter to ensure a cached version of the
// file is not used.
const timestamp = new Date().getTime();
const ignoreFileUrl = `${ignoreFilePath}?cb=${timestamp}`;
fetch(ignoreFileUrl)
.then(response => {
if (!response.ok) {
if (response.status === 404) {
Expand Down

0 comments on commit f4b77fc

Please sign in to comment.