Re: [ServiceWorker] importScripts() should throw? (#642)

For a specific service worker version, its _imported scripts updated flag_ is set only once during its installation phase when the installation succeeded (Install algorithm step 17). So the service worker being restarted from an existing registration should have been set its _imported scripts updated flag_ through the installation already. So to speak, importScripts(urls) will get a new script resources from the network only when the registration updates with a new version.

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/642#issuecomment-138017234

Received on Sunday, 6 September 2015 01:26:41 UTC