- From: Stuart P. Bentley <notifications@github.com>
- Date: Fri, 27 Jan 2017 14:54:10 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 27 January 2017 22:55:08 UTC
> Would I get response progress events from both event.fetchObserver and observer? Yes, but you probably wouldn't be subscribing to both sets of events - you'd either be listening to the client's view of the fetch (the `event.fetchObserver`), or the ServiceWorker's view of the fetch (the one that's attached to the call to `fetch`). There *is* a distinction, ie. if I'm choosing to make a fetch within a `fetch` event handler and then modify the response that I'm piping back to the client (ie. the outside caller that initiated the event in the ServiceWorker). [As I noted above](https://github.com/whatwg/fetch/issues/447#issuecomment-270633873), I'm not against the idea of ServiceWorker events having a different kind of observer - as they are, again, *fundamentally different kinds of observation* - but I don't think it should be a merely *limited version of the other kind of observer*. > If I get a push, does that appear in both? I think `push` would be its own ServiceWorker event, similar to `fetch`: in other words, it would look largely like a `fetch`, but one initiated by the *server*. -- 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/447#issuecomment-275797101
Received on Friday, 27 January 2017 22:55:08 UTC