From e16182aac5efe68be273397b3c56c61fa8829082 Mon Sep 17 00:00:00 2001 From: samreid Date: Sun, 5 Apr 2020 18:14:32 -0600 Subject: [PATCH] Remove cacheBust query parameter, see https://github.com/phetsims/chipper/issues/925 --- circuit-construction-kit-dc-virtual-lab_en.html | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/circuit-construction-kit-dc-virtual-lab_en.html b/circuit-construction-kit-dc-virtual-lab_en.html index c5b7b5f..b3f1fad 100644 --- a/circuit-construction-kit-dc-virtual-lab_en.html +++ b/circuit-construction-kit-dc-virtual-lab_en.html @@ -96,10 +96,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', @@ -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 ); };