Re: [ServiceWorker] Should foreign fetch work same-origin? (#826)

That's an interesting question. Fetches from that SW should definitely not go through its own foreign fetch handler, so at some point we'd need to somewhat special case same origin foreign fetch. I'm not sure about request from same origin uncontrolled pages (or even same origin but distinct service workers). I think there is pretty much three options: 

1. same origin requests from (uncontrolled) clients do go through the foreign fetch handler, and requests from distinct same origin service workers do as well
2. same origin requests from (uncontrolled) clients do go through the foreign fetch handler, but request from any same origin service worker do not
3.  no same origin requests will ever go through the foreign fetch handler

I think of these options maybe 3. would be the least confusing?

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

Received on Wednesday, 27 January 2016 18:24:12 UTC