From 0e2d8f365a97805d2c8cb88233fc59f4673cba98 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 13 Nov 2019 17:17:08 +0300 Subject: disable static cache filling because we don't provide all files in the list which breaks service worker on initial install --- worker.js | 2 ++ 1 file changed, 2 insertions(+) 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( -- cgit v1.2.3