- From: Adam Rice <notifications@github.com>
- Date: Tue, 13 Mar 2018 00:20:01 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 13 March 2018 07:20:23 UTC
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