Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Service worker isn't updated when new one is present #248

Open
florent1933 opened this issue May 10, 2017 · 1 comment
Open

Service worker isn't updated when new one is present #248

florent1933 opened this issue May 10, 2017 · 1 comment

Comments

@florent1933
Copy link

florent1933 commented May 10, 2017

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);
@giupo
Copy link

giupo commented Feb 13, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants