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

The reason I say no for 1 is because you're otherwise likely to introduce thrashing.

1. registration's script url is `/foo.js`
1. update happens, redirect hit, registration's script url is `/bar.js`
1. page refreshes, encounters `.register('/foo.js'), registration's script url is back to `/foo.js`, this triggers a fetch of `/foo.js` because the registration has changed as a result of the register call

2 & 3 aren't solved by dropping scopes, the problem is caused by catering to sites that thinking giving someone webspace in a directory sandboxes them to that director.

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

Received on Thursday, 12 February 2015 11:26:29 UTC