[w3c/ServiceWorker] Interaction of fetch abort with Cache APIs (#1286)

What error should be returned from put() and add() if the fetch is aborted using AbortSignal?

In other words, what should code like this log?

```javascript
  const controller = new AbortController();
  const signal = controller.signal;
  const request = new Request('slow', { signal });
  const response = await fetch(request);
  const cachePromise = cache.put(request, response);
  controller.abort();
  try {
    await cachePromise;
    console.log('unwanted success');
  } catch (e) {
    console.log(e);
  }
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1286

Received on Tuesday, 13 March 2018 07:20:23 UTC