Re: [slightlyoff/ServiceWorker] Never fail for navigation requests (#892)

Is this really that different from just using .catch()?  They are both explicit and opt-in.
```
self.addEventListener('fetch', evt => {
  evt.respondWith(myActualWork().catch(e => {
    // fallback to network always
    fetch(evt.request);
  });
});
```

---
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/892#issuecomment-235045972

Received on Monday, 25 July 2016 18:45:16 UTC