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

I don't think the network layer can do this.  It doesn't know which network requests will have side effects; e.g. hitting a REST API endpoint.  Content has to indicate this through cache control headers.  So the second fetch() would go to the http cache if configured to do so.  I think we have to live with the race where a second fetch() occurs before the headers are known for the first fetch().

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

Received on Wednesday, 10 December 2014 18:27:31 UTC