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 0b60de2 commit ce75ef6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions beers-law-lab_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 ce75ef6

Please sign in to comment.