Re: [w3c/ServiceWorker] Handling duplicate importScripts() (#1041)

Firefox implements what the spec says AFAIK.  We key our offline script storage using a UUID which is generated for each version of a particular worker.  When we do an update we compare the new scripts to the scripts stored under the currently active worker's UUID.

Personally I think the spec behavior makes sense.  Skipping install events seems dubious to me.  A script could do different things based on `self.registration.scope`.

-- 
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/1041#issuecomment-369804491

Received on Friday, 2 March 2018 02:54:06 UTC