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 e775f5b commit fb56495
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions reactants-products-and-leftovers_en.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,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 @@ -123,7 +119,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 fb56495

Please sign in to comment.