[w3c/ServiceWorker] When should "imported scripts updated flag" be unset? (#1021)

`importScripts` has two behaviours. One where it fetches from the network and adds to its "script resource map", and another where it fetches only from the "script resource map".

This allows `importScripts` during initial execution to implicitly populate the cache while the service worker is not-active, then later work without the network by using this cache.

The spec flips the switch once install has completed, but @mattto and @wanderview say implementations flip the switch after the first synchronous run of the service worker script.

Should the spec match implementations?

-- 
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/1021

Received on Wednesday, 7 December 2016 11:39:55 UTC