Re: [ServiceWorker] Update algorithm and redirects (#618)

If we want to allow redirects for the SW script, there's a few questions we need to answer:

1. If the registration's script url is `/foo.js`, and during an update it hits a redirect to '/bar.js', which url will be used for the next update check? Do redirects update the script url on the registration object?
2. If the scope is `/foo/` and the script url is `/foo/bar.js`, but redirects to `/foo/scripts/bar.js`, should that work?
3. If the scope is '/foo/' and the script url is `/foo/scripts/bar.js`, but redirects to `/foo/bar.js`, should that work?

I think 'no' for all three.

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/618#issuecomment-74052612

Received on Thursday, 12 February 2015 10:58:07 UTC