aboutsummaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2016-10-07 14:10:40 +0200
committerNoah Loomans <noahloomans@gmail.com>2016-10-07 14:10:40 +0200
commit0736df257deb67b9d2d7fb44488e36c941876dd6 (patch)
tree35b50d6524d759526b4cfe8ab5ff5b94ae1b6e85 /public
parent2496c062a709450f65efa7a87d9d8ebee48b8314 (diff)
fix service worker not updating
Diffstat (limited to 'public')
-rw-r--r--public/sw.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/public/sw.js b/public/sw.js
index 1168c93..bd43805 100644
--- a/public/sw.js
+++ b/public/sw.js
@@ -1,7 +1,5 @@
/* global importScripts toolbox self */
-// random string: CHfHo0GjMJAoOC
-
(global => {
'use strict'
@@ -21,11 +19,11 @@
'/stylesheets/hello.css'
])
- toolbox.router.get('/', toolbox.cacheFirst)
- toolbox.router.get('/hello', toolbox.cacheFirst)
+ toolbox.router.get('/', toolbox.fastest)
+ toolbox.router.get('/hello', toolbox.fastest)
- toolbox.router.get('/javascripts/bundle.js', toolbox.cacheFirst)
- toolbox.router.get('/stylesheets/*', toolbox.cacheFirst)
- toolbox.router.get('/untisinfo.css', toolbox.cacheFirst)
+ toolbox.router.get('/javascripts/bundle.js', toolbox.fastest)
+ toolbox.router.get('/stylesheets/*', toolbox.fastest)
+ toolbox.router.get('/untisinfo.css', toolbox.fastest)
toolbox.router.get('/meetingpointProxy/*', toolbox.networkFirst)
})(self)