Re: [ServiceWorker] Can caches store and retrieve results that are still being written to the cache? (#573)

> To clarify, with this approach all MatchAll() would retrieve both the previous existing entries and the new in progress entry? And Match() gets the previous entry due to ordering constraints?

Yep!

> One thing I'm trying to understand, why can ".match() can no longer reach them" in step 6, but they can be reached after step 3? What happens in between those two steps to make them unreachable?

The in-progress request can still fail in step 5, removing it from RequestToResponseMap, which re-exposes the other matches.

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

Received on Thursday, 4 December 2014 13:30:54 UTC