Re: [ServiceWorker] should respondWith(undefined) be treated the same as not calling respondWith() (#766)

Undefined is returned to `respondWith` if all of the following is true:

* The original `fetch(event.request)` failed
* There's no match in the cache
* The request does not have `text/html` in its `Accept` header (this is sniffing for a navigation-like request)

Returning undefined seems reasonable here, and should be treated as a network failure.

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/766#issuecomment-150601298

Received on Friday, 23 October 2015 15:05:40 UTC