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

Renaming the SW script file is sometimes okay #1

Open
ithinkihaveacat opened this issue May 8, 2017 · 1 comment
Open

Renaming the SW script file is sometimes okay #1

ithinkihaveacat opened this issue May 8, 2017 · 1 comment

Comments

@ithinkihaveacat
Copy link

Never rename the ServiceWorker script file

Sometimes this can be helpful, in particular in cases where you can't change the service worker itself, but it imports scripts (perhaps from another origin) that do change. In this case, changing the name of the service worker creates a "new" service worker that leads to the browser re-checking and re-downloading all dependencies. (More info.)

@popeindustries
Copy link
Owner

Thanks, that's a good point. Will add a note...

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