add service worker stale cache management, gapp versions

This commit is contained in:
Stewart Allen 2022-08-31 21:41:51 -04:00
commit 7262a6d313
4 changed files with 69 additions and 40 deletions

5
app.js
View file

@ -55,7 +55,8 @@ function init(mod) {
dir = mod.dir;
log = mod.log;
dversion = debug ? `_${version}` : version;
// dversion = debug ? `_${version}` : version;
dversion = debug ? Date.now().toString(36) : version;
cacheDir = mod.util.datadir("cache");
const approot = "main/gapp";
@ -419,9 +420,11 @@ const script = {
"&mesh/pool"
],
cache : [
"moto/license",
"main/service",
],
service : [
"moto/license",
"moto/service"
]
};