Re: [slightlyoff/ServiceWorker] More clarity around waiting for an active worker to finish (#916)

Some ideas:

Implementations could dynamically lower their "kill a long waitUntil" timer if skipWaiting has been called.  This would help deal with stalled fetches.

We could also cancel the fetch group associated with the service worker going redundant.  I think this is weakly spec'd right now, but it's basically the same mechanism that cancels network when a pages are closed.

Aborting the SW's fetch group should ensure all outstanding fetches resolve quickly.

Of course, we may want both since other code can hold a waitUntil open.

---
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/916#issuecomment-226939179

Received on Saturday, 18 June 2016 12:31:50 UTC