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

Sorry for the late comments.

I agree that the streaming behavior is better and that there's essential non-determinism in the Cache API today (it's known, and we didn't add transactions because of interactions with IDB transactions that we didn't want to think through in an ad-hoc way).

I think it's the right thing to "commit" to the Cache when you have headers (not the full body). This is compatible with body streaming.

Junkee: I agree with those changes. As long as the individual promises resolve when headers are available, I'm not sure that "Batch Cache Operations" needs to change.

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

Received on Wednesday, 10 December 2014 02:35:10 UTC