[w3c/ServiceWorker] Why does spec set redirect's mode to error ? (#1366)

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 ?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1366

Received on Tuesday, 30 October 2018 16:53:46 UTC