From 6ef2f4e96ac4dcc7c0c448d37a05424d07b615f2 Mon Sep 17 00:00:00 2001 From: samreid Date: Sun, 5 Apr 2020 18:14:33 -0600 Subject: [PATCH] Remove cacheBust query parameter, see https://github.com/phetsims/chipper/issues/925 --- balloons-and-static-electricity-tests.html | 6 +----- balloons-and-static-electricity_en.html | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/balloons-and-static-electricity-tests.html b/balloons-and-static-electricity-tests.html index bd00184e..af166296 100644 --- a/balloons-and-static-electricity-tests.html +++ b/balloons-and-static-electricity-tests.html @@ -98,10 +98,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 ); }; diff --git a/balloons-and-static-electricity_en.html b/balloons-and-static-electricity_en.html index 2a63b1b5..83883dff 100644 --- a/balloons-and-static-electricity_en.html +++ b/balloons-and-static-electricity_en.html @@ -97,10 +97,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', @@ -139,7 +135,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 ); };