diff --git a/typo3/sysext/core/Classes/Page/PageRenderer.php b/typo3/sysext/core/Classes/Page/PageRenderer.php index 73f7dc0951c849e67a38682694d99ab7ecf078a6..86698eca2a56e59c280aa158bd71900ab8e8215b 100644 --- a/typo3/sysext/core/Classes/Page/PageRenderer.php +++ b/typo3/sysext/core/Classes/Page/PageRenderer.php @@ -1547,6 +1547,12 @@ class PageRenderer implements \TYPO3\CMS\Core\SingletonInterface { // load all paths to map to package names / namespaces if (empty($this->requireJsConfig)) { + // In order to avoid browser caching of JS files, adding a GET parameter to the files loaded via requireJS + if (GeneralUtility::getApplicationContext()->isDevelopment()) { + $this->requireJsConfig['urlArgs'] = 'bust=' . $GLOBALS['EXEC_TIME']; + } else { + $this->requireJsConfig['urlArgs'] = 'bust=' . GeneralUtility::shortMD5(TYPO3_version . $GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey']); + } // first, load all paths for the namespaces, and configure contrib libs. $this->requireJsConfig['paths'] = array( 'jquery-ui' => $this->backPath . 'sysext/core/Resources/Public/JavaScript/Contrib/jquery-ui',