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

This changes the behavior of the service worker script resource
comparison. Before this, only the main service worker script was
compared to a new version. With this change, all the imported scripts
stored in the imported scripts map as well as the main script are
inspected against the corresponding network resources (based on the
urls.)

Note:
 - Service worker's script resource map has been renamed and moved to
 service worker's script resource's imported scritps map.
 - registration's last update check time's always updated whenever the
 response is fetched from the network (regardless it's a main script or
 an imported script.)

Fixes #839.
You can view, comment on, or merge this pull request online at:

  https://github.com/w3c/ServiceWorker/pull/1023

-- Commit Summary --

  * Include imported scripts to byte-check

-- File Changes --

    M docs/index.bs (41)
    M docs/index.html (375)
    M docs/v1/index.bs (41)
    M docs/v1/index.html (353)

-- Patch Links --

https://github.com/w3c/ServiceWorker/pull/1023.patch
https://github.com/w3c/ServiceWorker/pull/1023.diff

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

Received on Monday, 12 December 2016 20:02:50 UTC