- From: Mike West <notifications@github.com>
- Date: Mon, 25 Mar 2019 16:37:04 +0000 (UTC)
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 25 March 2019 16:37:28 UTC
I'm imagining that these headers would be set in main fetch, before we hit the service worker. I could also easily live with the headers being set in HTTP-network-or-cache fetch, after we run through the service worker. Either way, I'm a bit confused about the expectations for fetches from Service Workers, as my mental model matches what you suggest above ("the values get overridden by the fetch algorithm"), but I've also heard suggestions that "`event.respondWith(fetch(event.request))` is the same as if service worker was not there", which would mean that things like `destination`, et al. carry over. That's not how it works in Chrome today for things like CSP (nor, I believe, does it work that way in Firefox), so it would be helpful to get some clarity. @jakearchibald and @arturjanc have been discussing this in more detail over the last few days, and might have thoughts to share. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/885#issuecomment-476279610
Received on Monday, 25 March 2019 16:37:28 UTC