- From: Ben Kelly <notifications@github.com>
- Date: Wed, 10 Dec 2014 10:26:48 -0800
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Wednesday, 10 December 2014 18:27:31 UTC
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