summaryrefslogtreecommitdiff
path: root/worker.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-11-13 17:17:08 +0300
committerAndrew Dolgov <[email protected]>2019-11-13 17:17:08 +0300
commit0e2d8f365a97805d2c8cb88233fc59f4673cba98 (patch)
treec82291d73bc06b2bb0b6df2b7d178131fdd9ae70 /worker.js
parentd82d599812c1f126d7f9a9cecbca5422964da99e (diff)
disable static cache filling because we don't provide all files in the list which breaks service worker on initial install
Diffstat (limited to 'worker.js')
-rw-r--r--worker.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/worker.js b/worker.js
index 0c3fa6e..de1a2e4 100644
--- a/worker.js
+++ b/worker.js
@@ -40,6 +40,7 @@ const CACHE_URLS = [
'lib/fonts/pmn-caecilia-75.ttf'
];
+/*
self.addEventListener('install', function(event) {
event.waitUntil(
caches.open(CACHE_NAME).then(function(cache) {
@@ -47,6 +48,7 @@ self.addEventListener('install', function(event) {
})
);
});
+*/
self.addEventListener('activate', function(event) {
event.waitUntil(