From 98ce4149eb388aedae3ae911dabcf0bb6fd56974 Mon Sep 17 00:00:00 2001 From: samreid Date: Fri, 4 Oct 2019 08:04:52 -0600 Subject: [PATCH] grunt update, see https://github.com/phetsims/chipper/issues/541 --- balancing-chemical-equations_en.html | 6 +++--- js/balancing-chemical-equations-config.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/balancing-chemical-equations_en.html b/balancing-chemical-equations_en.html index d376d4bb..c25e7ed6 100644 --- a/balancing-chemical-equations_en.html +++ b/balancing-chemical-equations_en.html @@ -29,9 +29,9 @@ const brandMatch = location.search.match( /brand=([^&]+)/ ); const brand = brandMatch ? decodeURIComponent( brandMatch[ 1 ] ) : 'adapted-from-phet'; - // matches "cacheBust" at the start of the string, as well as directly after "?" or "&" - const cacheBust = /(^|\?|&)cacheBust/.test( location.search ); - const queryAppend = cacheBust ? `?bust=${Date.now()}` : ''; + // 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 = [ diff --git a/js/balancing-chemical-equations-config.js b/js/balancing-chemical-equations-config.js index 63179f91..7de7eaf3 100644 --- a/js/balancing-chemical-equations-config.js +++ b/js/balancing-chemical-equations-config.js @@ -45,6 +45,6 @@ require.config( { VEGAS: '../../vegas/js' }, - // optional cache bust to make browser refresh load all included scripts, can be enabled with ?cacheBust + // Cache busting is applied by default, but can be disabled via ?cacheBust=false, see initialize-globals.js urlArgs: phet.chipper.getCacheBustArgs() } );