From 4a0a369c0b0ab81f2459ca2aab61ed7290732d66 Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Fri, 22 Jul 2016 00:23:29 -0700 Subject: [PATCH] updated caching strategies --- server/static/service-worker.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/static/service-worker.js b/server/static/service-worker.js index c3423eb8a..7881f1477 100644 --- a/server/static/service-worker.js +++ b/server/static/service-worker.js @@ -54,11 +54,11 @@ Cache.prototype.addAll||(Cache.prototype.addAll=function(t){function e(t){this.n global.toolbox.options.debug = true; // Index page and assets - global.toolbox.router.get('/', global.toolbox.cacheFirst); - global.toolbox.router.get(/\/dashboard/, 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); + global.toolbox.router.get('/', global.toolbox.networkFirst); + global.toolbox.router.get(/\/dashboard/, global.toolbox.networkFirst); + global.toolbox.router.get(/\/atlas\/\/[\w]+/, global.toolbox.networkFirst); + global.toolbox.router.get(/\/documents\/\/[\w]+/, global.toolbox.networkFirst); + global.toolbox.router.get(/\/static\//, global.toolbox.fastest); // API get calls global.toolbox.router.get(/\/api\/[\w\.]+/, global.toolbox.networkFirst);