regex for sw

This commit is contained in:
Jori Lallo 2016-07-21 22:59:39 -07:00
parent 598ef9078d
commit 2669b27a08
1 changed files with 3 additions and 3 deletions

View File

@ -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;