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

Take into accounts etags on initialization importScripts responses to update the Service Worker #830

Closed
delapuente opened this issue Feb 9, 2016 · 1 comment

Comments

@delapuente
Copy link

For developers, composition of diverse service worker functionality can be done via importScripts(). The problem with this approach is that is needed to byte-alter the sw in order to get it updated. If not, imported scripts could change but the main file could remain the same. Traditional solutions forces the developer to manually add some kind of change in the sw file but the specification could take into account eTag header to determine if imported scripts have changed. If the eTag is not present, it can default to the current behaviour.

This way, even if the sw itself has not changed, a byte-level change in one of the eTag will trigger the update.

@jakearchibald
Copy link
Contributor

Dupe of #839?

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