From 1e4bfb4e64345dd059bb886a08406104bb38422d Mon Sep 17 00:00:00 2001 From: samreid Date: Sun, 5 Apr 2020 18:14:45 -0600 Subject: [PATCH] Remove cacheBust query parameter, see https://github.com/phetsims/chipper/issues/925 --- wilder_en.html | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/wilder_en.html b/wilder_en.html index 234b6d5..e0ddc09 100644 --- a/wilder_en.html +++ b/wilder_en.html @@ -72,10 +72,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 ); };