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 2184305 commit 286dbac
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions utterance-queue-tests.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,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 @@ -111,7 +107,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 286dbac

Please sign in to comment.