Re: [ServiceWorker] Prefetching resources using SW (#570)

The `.match` promise in the example will resolve with an incumbent record, if there has been any, even before `.add` promise resolves. Or, if there has been no incumbent record, it will return the in-flight fetching record. The fulfillment of `.add` promise makes the resource be the new incumbent record for the next request.

Closing.

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

Received on Wednesday, 8 July 2015 02:03:23 UTC