From f62c1fa7e43154d1aa8fcf8fc07450470e3dfeeb Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 8 Feb 2019 21:54:20 -0500 Subject: [PATCH] Append cache-buster to dynamically loaded scripts --- js/Common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/Common.js b/js/Common.js index de326cda0e..01bc7572ba 100644 --- a/js/Common.js +++ b/js/Common.js @@ -256,7 +256,7 @@ if (!CRM.vars) CRM.vars = {}; CRM.CMSjQuery = window.jQuery; window.jQuery = CRM.$; } - script.src = url; + script.src = url + (_.includes(url, '?') ? '&r=' : '?r=') + CRM.config.resourceCacheCode; document.getElementsByTagName("head")[0].appendChild(script); } return scriptsLoaded[url]; -- 2.25.1