aboutsummaryrefslogtreecommitdiffstats
path: root/sworker.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2016-01-20 09:42:52 +0100
committerMatěj Cepl <mcepl@cepl.eu>2016-01-20 10:05:28 +0100
commita4dfab6d0ff3a4a9bf8d837fd195cd59f765f5e5 (patch)
treeeb5e3f978e12ad3cf65d34a06c7d13fc508087d0 /sworker.js
parent025cb34ccfb0ad48321d91e9cba5692267a9997d (diff)
downloadhesla-a4dfab6d0ff3a4a9bf8d837fd195cd59f765f5e5.tar.gz
Twice installed resource breaks 'install' events.
Diffstat (limited to 'sworker.js')
-rw-r--r--sworker.js15
1 files changed, 1 insertions, 14 deletions
diff --git a/sworker.js b/sworker.js
index 9d991ad..c0a4d54 100644
--- a/sworker.js
+++ b/sworker.js
@@ -1,4 +1,4 @@
-var version = 'v28 - 2016-01-19';
+var version = 'v34 - 2016-01-20';
var toCache = [
'/',
'index.html',
@@ -9,7 +9,6 @@ var toCache = [
'hesla.js',
'hesla.js.map',
'hesla.webapp',
- 'require.js',
'favicon.ico',
'icon-128.png',
'icon-30.png',
@@ -42,15 +41,3 @@ self.addEventListener('activate', event => {
self.addEventListener('fetch', function(event) {
event.respondWith(caches.match(event.request));
});
-
-// this.addEventListener('fetch', function(event) {
-// event.respondWith(
-// caches.match(event.request).then(function(pro) {
-// console.log('Fullfilling ' + event.request.url + ' from cache');
-// return pro;
-// }).catch(function() {
-// console.log('Loading ' + event.request.url);
-// return fetch(event.request);
-// })
-// );
-// });