Re: [w3c/ServiceWorker] Feature request: Provide a way to conditionally prevent a service worker update (#1208)

Hi @jakearchibald, thanks for your response. 

I'm not requesting the ability to prevent a Service Worker update, only the ability to delay it slightly. If the old Service Worker calls `waitUntil` with a promise that takes too long, say more than a few minutes or so, I'm perfectly fine if it gets killed and updated.

That last part is already allowed by the spec, I think: "However, the user agent *may* impose a time limit to this lifetime extension."

Basically, all I want to do in the `updatefound` event is make one or two network request and conditionally warn the user about the update.

-- 
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/1208#issuecomment-341583828

Received on Thursday, 2 November 2017 23:05:12 UTC