Re: [ServiceWorker] `waitUntil()` for FetchEvent? (#584)

> @wanderview In your comment above, did you mean cache.put() in the example should have been called within e.waitUntil()?

Yes.  I meant if we had a general waitUntil(), it could be used to keep the worker alive until cache.put() completes, even though respondWith() has already been called.

As a side note, I am changing the gecko Cache implementation to keep the worker alive as long as there are Cache operations in flight.  This is partly for ipc implementation details, but also partly due to the lack of waitUntil().

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

Received on Tuesday, 7 April 2015 16:50:39 UTC