mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
add cache-buster to framework bundle
This commit is contained in:
parent
b2a48fc942
commit
a8ae92e1cc
@ -216,16 +216,18 @@ abstract class Ajax extends Api\Framework
|
|||||||
|
|
||||||
if ($do_framework)
|
if ($do_framework)
|
||||||
{
|
{
|
||||||
//echo __METHOD__.__LINE__.' do framework ...'.'<br>';
|
|
||||||
// framework javascript classes only need for 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')
|
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
|
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
|
Api\Cache::unsetSession(__CLASS__,'sidebox_md5'); // sideboxes need to be send again
|
||||||
|
|
||||||
$extra['navbar-apps'] = $this->get_navbar_apps($_SERVER['REQUEST_URI']);
|
$extra['navbar-apps'] = $this->get_navbar_apps($_SERVER['REQUEST_URI']);
|
||||||
|
Loading…
Reference in New Issue
Block a user