Re: [w3c/ServiceWorker] Include imported scripts to byte-check (#1023)

When the imported scripts are checked, we're doing it with `no-cache`, but then later when we run the script it'll execute `importScripts` and once again request the resources `no-cache`.

I hadn't thought about this until reading this PR, but I think it's something we need to solve.

"Check If Service Worker Resources Are Identical" could return a boolean as it does now, but also a map of all the scripts it fetched. Then, `importScripts` could check this cache before going to the network. This cache can be deleted once install completes - or whenever we set the "imported scripts updated flag" flag, which discards imports that were used in the previous version, but not this one.

-- 
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-266782328

Received on Tuesday, 13 December 2016 16:15:13 UTC