Re: [w3c/ServiceWorker] Add a script version property to the ServiceWorker object (#1387)

@asakusuma, yeah that's [exactly what we were originally doing in Workbox](https://github.com/GoogleChrome/workbox/blob/9bb41cc74a0545fd4fe0b6e1d67eb122888756d6/packages/workbox-window/Workbox.mjs#L253-L262), but it's really tricky from a library perspective because if the developer doesn't also implement the message listener properly in the service worker, it will break things.

We were setting a timeout on the `postMessage()` call to hopefully minimize they breakage, but ultimately I decided to remove the entire versioning system altogether and let advanced users who need that functionality implement it themselves.

I still do think it's a really important feature though, and as service worker usage gets more complex in the future, I think we'll need a platform solution.

-- 
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/1387#issuecomment-459783129

Received on Friday, 1 February 2019 16:34:58 UTC