mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-16 18:31:26 +01:00
add daily cache-buster to client-side included app.js files for applyFunc
This commit is contained in:
parent
1ffde3b692
commit
46c4e0e118
@ -522,7 +522,8 @@ egw.extend('json', egw.MODULE_WND_LOCAL, function(_app, _wnd)
|
|||||||
const self = this;
|
const self = this;
|
||||||
return new Promise(function(resolve, reject)
|
return new Promise(function(resolve, reject)
|
||||||
{
|
{
|
||||||
self.includeJS('/'+parts[1]+'/js/app.js', function ()
|
// cache for a day, better then no invalidation
|
||||||
|
self.includeJS('/'+parts[1]+'/js/app.js?'+((new Date).valueOf()/86400|0).toString(), function ()
|
||||||
{
|
{
|
||||||
resolve(self.applyFunc(_func, args, _context));
|
resolve(self.applyFunc(_func, args, _context));
|
||||||
}, self, self.webserverUrl);
|
}, self, self.webserverUrl);
|
||||||
|
Loading…
Reference in New Issue
Block a user