add daily cache-buster to client-side included app.js files for applyFunc

This commit is contained in:
Ralf Becker 2021-03-12 11:22:59 +02:00
parent 1ffde3b692
commit 46c4e0e118

View File

@ -522,7 +522,8 @@ egw.extend('json', egw.MODULE_WND_LOCAL, function(_app, _wnd)
const self = this;
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));
}, self, self.webserverUrl);