testing other cache stategies

This commit is contained in:
Jori Lallo
2016-07-21 22:26:05 -07:00
parent db86dbb797
commit faf98a9d62

View File

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