- From: Jungkee Song <notifications@github.com>
- Date: Wed, 14 Dec 2016 20:23:29 -0800
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 15 December 2016 04:24:00 UTC
I think @jakearchibald and @wanderview largely suggested the same thing. Basically byte-check will populate a temporary map if the fetched resource is new. `importScripts()` will consult this map (to populate SW's script resource's imported scripts map*) before fetching through HTTP cache/network until the imported scripts updated flag is set. Once the flag is set, `importScripts()` always returns the results from the imported scripts map. I think if we define and maintain the temporary map on a service worker registration, we should nothing but add and update the entry throughout the registration's lifetime. I'll add this change to the PR. (*) This is the SW's script resource map in the current spec. I suggested changing the name and the location of the concept as such through this PR for clarity and a better interface to other algorithms. -- 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/pull/1023#issuecomment-267235496
Received on Thursday, 15 December 2016 04:24:00 UTC