add service worker stale cache management, gapp versions
This commit is contained in:
parent
0b9d1bf7fb
commit
7262a6d313
4 changed files with 69 additions and 40 deletions
5
app.js
5
app.js
|
|
@ -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"
|
||||
]
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue