From 44b28c995d7cae1a0051fb5ce42b29b02ec86b9c 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 --- tappi_en.html | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tappi_en.html b/tappi_en.html index dc3f598..899809f 100644 --- a/tappi_en.html +++ b/tappi_en.html @@ -78,10 +78,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', @@ -120,7 +116,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 ); };