Re: [slightlyoff/ServiceWorker] Handling race conditions - API for accessing pending requests? (#959)

I think the answer in both cases is that the HTTP cache will help avoid actually issuing double requests over the network and that this simplifies things for everyone.

Cache API-wise, it's my understanding from discussion about the Cache transaction API https://github.com/slightlyoff/ServiceWorker/issues/823 that the Cache API will be changed so that an in-flight put/add will only become visible for match() purposes once its body has been retrieved and it is atomically inserted into the Cache.  And that the existing language around fetching records and incumbent records will be simplified to reflect this.  In other words, an explicit decision to not expose a pending requests API.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/959#issuecomment-240579520

Received on Wednesday, 17 August 2016 23:24:50 UTC