Re: [w3c/ServiceWorker] Improve service worker script caching and update (#1283)

Thanks for reviewing. I'll update the commit description when merging the final snapshot.

I also checked out the tests and found they already cover the behavior this PR addresses:
 - https://github.com/w3c/web-platform-tests/blob/master/service-workers/service-worker/import-scripts-resource-map.https.html is testing the multiple same script imports case.
 - https://github.com/w3c/web-platform-tests/blob/master/service-workers/service-worker/update-bytecheck.https.html is testing no new service worker's created when both of the main script and the imported scripts are byte-for-byte identical. I think we might want to add more assertions to check other cases, e.g. whether it continues with Install if only imported scripts were changed. But I'll merge this PR as we at least have the test file in place.

-- 
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/1283#issuecomment-372548159

Received on Tuesday, 13 March 2018 05:05:00 UTC