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

Why does spec set redirect's mode to error ? #1366

Closed
TomPradat opened this issue Oct 30, 2018 · 2 comments
Closed

Why does spec set redirect's mode to error ? #1366

TomPradat opened this issue Oct 30, 2018 · 2 comments

Comments

@TomPradat
Copy link

I don't really understand why we have this in the spec.

This causes trouble when redirection websites to new urls.
If you want to redirect some old-website to new-website, you'd think you just need to 301 redirect from old-website to new-website. The problem is that doing so the service-worker won't update and serve the cached content. The only solution found for now is to redirect everything from old-website except /service-worker.js that serves a custom service-worker that unregister the current service-worker.

Is there any other way to tackle the problem ?

@TomPradat
Copy link
Author

Can I have someone to answer me ?

Here is the problem explained more thoroughly => https://stackoverflow.com/questions/53539111/service-worker-breaks-the-internet

@jakearchibald
Copy link
Contributor

History here: #618 (comment)

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