From faf98a9d62a15ed2ba9a10d7dca2812492cc79b5 Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Thu, 21 Jul 2016 22:26:05 -0700 Subject: [PATCH] testing other cache stategies --- server/static/service-worker.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/static/service-worker.js b/server/static/service-worker.js index 889ced6a1..0860cc74c 100644 --- a/server/static/service-worker.js +++ b/server/static/service-worker.js @@ -71,12 +71,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('/', global.toolbox.cacheFirst); + global.toolbox.router.get('/dashboard', 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/*', global.toolbox.networkFirst); global.toolbox.router.default = global.toolbox.networkFirst;