Re: [slightlyoff/ServiceWorker] Recovering from fetch failures (#939)

An alternative proposed by @wanderview is some kind of `fetcherror` event:

```js
self.addEventListener('fetcherror', event => {
  event.fallbackToDefaultRequest();
});
```

The benefits of this is the isolation of your error handling code from the thing that might be causing the error. However, you can only fallback to default behaviour, not provide some other kind of response. But do we need a whole new event? What if the request's body has already been used? Is that a problem?

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/939#issuecomment-237277939

Received on Wednesday, 3 August 2016 17:01:37 UTC