Re: [w3c/ServiceWorker] Immediate Service Worker (#1389)

> The `ServiceWorkerGlobalScope.skipWaiting()` method of the `ServiceWorkerGlobalScope` forces the 
> waiting service worker to become the active service worker.
>
> Use this method with `Clients.claim()` to ensure that updates to the underlying service worker take 
> effect immediately for both the current client and all other active clients.

https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/skipWaiting
https://developer.mozilla.org/en-US/docs/Web/API/Clients/claim

Does this not achieve what you want?

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

Received on Tuesday, 19 February 2019 14:39:26 UTC