Skip to content

Commit

Permalink
Remove cacheBust query parameter, see phetsims/chipper#925
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Apr 6, 2020
1 parent b9e0bd3 commit 6ef2f4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions balloons-and-static-electricity-tests.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,6 @@
const brandMatch = location.search.match( /brand=([^&]+)/ );
const brand = brandMatch ? decodeURIComponent( brandMatch[ 1 ] ) : 'adapted-from-phet';

// Cache busting is applied by default, but can be disabled via ?cacheBust=false, see initialize-globals.js
const isCacheBustDisabled = /(^|\?|&)cacheBust=false/.test( location.search );
const queryAppend = isCacheBustDisabled ? '' : `?bust=${Date.now()}`;

// Preloads, with more included for phet-io brand
let preloads = [
'../sherpa/lib/mdn-array-from-polyfill.js',
Expand Down Expand Up @@ -138,7 +134,7 @@
const loadURL = ( preloadURL, type = 'text/javascript' ) => {
const script = document.createElement( 'script' );
script.type = type;
script.src = preloadURL + queryAppend;
script.src = preloadURL;
script.async = false;
document.head.appendChild( script );
};
Expand Down
6 changes: 1 addition & 5 deletions balloons-and-static-electricity_en.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,6 @@
const brandMatch = location.search.match( /brand=([^&]+)/ );
const brand = brandMatch ? decodeURIComponent( brandMatch[ 1 ] ) : 'adapted-from-phet';

// Cache busting is applied by default, but can be disabled via ?cacheBust=false, see initialize-globals.js
const isCacheBustDisabled = /(^|\?|&)cacheBust=false/.test( location.search );
const queryAppend = isCacheBustDisabled ? '' : `?bust=${Date.now()}`;

// Preloads, with more included for phet-io brand
let preloads = [
'../sherpa/lib/mdn-array-from-polyfill.js',
Expand Down Expand Up @@ -139,7 +135,7 @@
const loadURL = ( preloadURL, type = 'text/javascript' ) => {
const script = document.createElement( 'script' );
script.type = type;
script.src = preloadURL + queryAppend;
script.src = preloadURL;
script.async = false;
document.head.appendChild( script );
};
Expand Down

0 comments on commit 6ef2f4e

Please sign in to comment.