sw-toolbox icon indicating copy to clipboard operation
sw-toolbox copied to clipboard

Service worker isn't updated when new one is present

Open florent1933 opened this issue 7 years ago • 1 comments

capture d ecran 2017-05-11 a 00 05 03

It's waiting to activate all the time and the date below installing seems strange : 1970

In index.html :

<script src="bower_components/sw-toolbox/companion.js" data-service-worker="otium-service-worker.js"></script>

In the service workers :

importScripts('bower_components/sw-toolbox/sw-toolbox.js');

toolbox.router.get('/assets/:folder*/:file', toolbox.networkFirst);
toolbox.router.get('/index.html', toolbox.networkFirst);
toolbox.router.get('/favicon.ico', toolbox.networkFirst);

toolbox.router.get('/bower_components/:folder*/:file', toolbox.fastest);

toolbox.router.get('/:id.bundle.js', toolbox.cacheFirst);
toolbox.router.get('/:id.bundle.css', toolbox.cacheFirst);

florent1933 avatar May 10 '17 22:05 florent1933

I dunno if it helps, but here: https://youtu.be/cmGr0RszHc8?t=448 @jakearchibald states it's a known bug.

giupo avatar Feb 13 '19 17:02 giupo