From a8ae92e1cc852cd2f34aaed815dbebe59df68fec Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 7 Jul 2021 16:51:31 +0200 Subject: [PATCH] add cache-buster to framework bundle --- api/src/Framework/Ajax.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/api/src/Framework/Ajax.php b/api/src/Framework/Ajax.php index 6b54babb18..77f0e67530 100755 --- a/api/src/Framework/Ajax.php +++ b/api/src/Framework/Ajax.php @@ -216,16 +216,18 @@ abstract class Ajax extends Api\Framework if ($do_framework) { - //echo __METHOD__.__LINE__.' do framework ...'.'
'; // framework javascript classes only need for framework + $path = '/'.static::JS_INCLUDE_APP.'/js/'; if (Api\Header\UserAgent::mobile() || $GLOBALS['egw_info']['user']['preferences']['common']['theme'] == 'mobile') { - self::includeJS('.', 'fw_mobile', static::JS_INCLUDE_APP); + $path .= 'fw_mobile.min.js'; } else { - self::includeJS('.', 'fw_'.static::APP, static::JS_INCLUDE_APP); + $path .='fw_'.static::APP.'.min.js'; } + self::includeJS($path.'?'.filemtime(EGW_SERVER_ROOT.$path)); + Api\Cache::unsetSession(__CLASS__,'sidebox_md5'); // sideboxes need to be send again $extra['navbar-apps'] = $this->get_navbar_apps($_SERVER['REQUEST_URI']);