Re: [whatwg/fetch] Aborting a fetch: The Next Generation (#447)

Maybe the service worker shouldn't get a fetch observer. That could be over-complicating the design.

Eg:

```js
addEventListener('fetch', event => {
  console.log(event.fetchObserver);
  event.respondWith(
    fetch(event.request, {
      observe(observer) {
        // …
      }
    })
  );
});
```

Would I get response progress events from both `event.fetchObserver` and `observer`? If I get a push, does that appear in both?

If I don't call `respondWith`, will `event.fetchObserver` continue to give me events?

If these questions become sticking points, the service worker could receive something limited, like a "fetch signaler", which doesn't offer response progress events, or h2-push events.

-- 
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-275629346

Received on Friday, 27 January 2017 10:00:36 UTC