- From: Marijn Kruisselbrink <notifications@github.com>
- Date: Mon, 22 Feb 2016 16:58:04 -0800
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Tuesday, 23 February 2016 00:58:34 UTC
I agree that a timeout on fetch would be helpful too, but not enough. To elaborate on the use case I was trying to describe: 1. Fetch event comes in, fire off network fetch and start timeout. 2. After 100ms timeout triggers, resolve promise passed to respondWith with something (but leave a waitUntil promise unresolved) 3. When fetch finishes, store its result in cache, postMessage to client to inform it of newly available data, resolve waitUntil promise. --- Reply to this email directly or view it on GitHub: https://github.com/slightlyoff/ServiceWorker/issues/838#issuecomment-187457787
Received on Tuesday, 23 February 2016 00:58:34 UTC