Re: [w3c/ServiceWorker] Making a concurrent request for navigations (#920)

@n8schloss Would you be comfortable with always calling `respondWith()` and using a pass-through fetch if necessary?

```
addEventListener('fetch', evt => {
  evt.respondWith(evt.navigationPreload().then(res => {
    return res || fetch(evt.request);
  });
});
```

I think people have the impression that not calling `respondWith()` is more efficient than a pass-through fetch.  The API design, however, is built on the premise that these effectively equivalent.  I think we should just lean on that here and continue to make the pass-through better.

-- 
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/920#issuecomment-255900151

Received on Tuesday, 25 October 2016 00:06:37 UTC