From a08f08698a650b6ee83cf7d7081658b03baa567c Mon Sep 17 00:00:00 2001 From: samreid Date: Sun, 5 Apr 2020 18:14:46 -0600 Subject: [PATCH] Remove cacheBust query parameter, see https://github.com/phetsims/chipper/issues/925 --- joist-tests.html | 6 +----- joist_en.html | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/joist-tests.html b/joist-tests.html index fa968167..d4af9cce 100644 --- a/joist-tests.html +++ b/joist-tests.html @@ -74,10 +74,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', @@ -114,7 +110,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 ); }; diff --git a/joist_en.html b/joist_en.html index 90a6b58f..eec074a7 100644 --- a/joist_en.html +++ b/joist_en.html @@ -73,10 +73,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', @@ -115,7 +111,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 ); };