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

Clarified responses can commit to cache as soon as their headers are available. And made add/addAll/put resolve when the full body of the responses are written to the cache: 9eb76f433d877d3de8b8d79042fdf0ac620fabde.

> If you call .match(request) and there's already a match fully-written in the cache, you'll get that rather than the in-progress one. This seems sensible to me, but we could favour the in-progress one.

This requirement has not been addressed yet. I'm thinking of defining an associated _fetching record_ (in-progress one) for each _incumbent record_ (a match fully-written) in _request to response map_.

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

Received on Thursday, 11 December 2014 07:35:28 UTC