- From: Alex Russell <notifications@github.com>
- Date: Tue, 09 Dec 2014 18:26:35 -0800
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Wednesday, 10 December 2014 02:27:02 UTC
AKA: should `FetchEvent` be an `ExtendableEvent`? It's possible today to write code that fetches from the network, adds to a cache, and then matches from the cache in order to feed a document. This seems a bit weird...why invoke the Cache matching mechanism for a `Response` you've already got a handle to and can simply `.clone()`? The answer, today, is the lifetime concern: you want the `respondWith` promise to extend beyond the point where the Cache is savvy to the cache entry. This is a bit weird. Mightn't it be better to give `FetchEvent` a `waitUntil()`? --- Reply to this email directly or view it on GitHub: https://github.com/slightlyoff/ServiceWorker/issues/584
Received on Wednesday, 10 December 2014 02:27:02 UTC