From 46c4e0e1188f4812c5f26ef8444d9d1eca010e49 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 12 Mar 2021 11:22:59 +0200 Subject: [PATCH] add daily cache-buster to client-side included app.js files for applyFunc --- api/js/jsapi/egw_json.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/js/jsapi/egw_json.js b/api/js/jsapi/egw_json.js index 655ec43ce3..8f522e6b6b 100644 --- a/api/js/jsapi/egw_json.js +++ b/api/js/jsapi/egw_json.js @@ -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);