Re: [ServiceWorker] passthrough service worker can break sites using redirected stylesheets (#757)

I guess workers have the same problem.  If `a.com/worker.js` is redirected to `a.com/scripts/worker.js` and then does an `importScripts('./lib.js')`, then the relative URL for the sub-resource is broken again.  With a pass-through service worker it tries to load `a.com/lib.js` instead of `a.com/scripts/lib.js`.

Also, @annevk tells me on IRC he does not think manual redirect is the answer here.

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

Received on Friday, 2 October 2015 15:09:25 UTC