diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2016-01-20 09:42:52 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2016-01-20 10:05:28 +0100 |
commit | a4dfab6d0ff3a4a9bf8d837fd195cd59f765f5e5 (patch) | |
tree | eb5e3f978e12ad3cf65d34a06c7d13fc508087d0 /sworker.js | |
parent | 025cb34ccfb0ad48321d91e9cba5692267a9997d (diff) | |
download | hesla-a4dfab6d0ff3a4a9bf8d837fd195cd59f765f5e5.tar.gz |
Twice installed resource breaks 'install' events.
Diffstat (limited to 'sworker.js')
-rw-r--r-- | sworker.js | 15 |
1 files changed, 1 insertions, 14 deletions
@@ -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); -// }) -// ); -// }); |