regex for sw
This commit is contained in:
parent
598ef9078d
commit
2669b27a08
@ -56,12 +56,12 @@ Cache.prototype.addAll||(Cache.prototype.addAll=function(t){function e(t){this.n
|
||||
// Index page and assets
|
||||
global.toolbox.router.get('/', global.toolbox.cacheFirst);
|
||||
global.toolbox.router.get(/\/dashboard/, global.toolbox.cacheFirst);
|
||||
global.toolbox.router.get(/\/atlas/, global.toolbox.cacheFirst);
|
||||
global.toolbox.router.get(/\/documents\//, global.toolbox.cacheFirst);
|
||||
global.toolbox.router.get(/\/atlas\/\/[\w]+/, global.toolbox.cacheFirst);
|
||||
global.toolbox.router.get(/\/documents\/\/[\w]+/, global.toolbox.cacheFirst);
|
||||
global.toolbox.router.get(/\/static\//, global.toolbox.cacheFirst);
|
||||
|
||||
// API get calls
|
||||
global.toolbox.router.post(/\/api\//, global.toolbox.networkFirst);
|
||||
global.toolbox.router.post(/\/api\/[\w\.]+/, global.toolbox.networkFirst);
|
||||
|
||||
global.toolbox.router.default = global.toolbox.networkFirst;
|
||||
|
||||
|
Reference in New Issue
Block a user