Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support updating multiple service workers coherently #727

Open
wanderview opened this issue Jul 27, 2015 · 0 comments
Open

support updating multiple service workers coherently #727

wanderview opened this issue Jul 27, 2015 · 0 comments
Milestone

Comments

@wanderview
Copy link
Member

I believe at the f2f last week we decided that we need to provide some mechanism to update multiple service workers coherently. Right now if you have two service workers, one will always update before the other one.

I think a reasonable way to do this would be something like an "update group" in the registration.

navigator.serviceWorkers.register(script1, { group: 'foo' });
navigator.serviceWorkers.register(script2, { group: 'foo' });

Updates to either script would then trigger updates for all other scripts in 'foo' group. Each service worker in the group would progress through installing/waiting/activating together.

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

No branches or pull requests

2 participants