Re: [w3c/ServiceWorker] CORS preflight for static import in a module service worker (#1574)

> Do not add the "Service Worker: script" header to import scripts.

We don't add this header to `importScripts()` scripts, so I think this is the right thing to do here too. This means server logs can identify the root of scripts being used as service workers.

Also, right now we're breaking cases where `updateViaCache` is set to "imports", which should signal that the browser can go to the HTTP cache for imports when checking for updates. With modules, we're not treating imports as imports by that definition.

It doesn't look like we're doing the byte-identical check on imported scripts either.

-- 
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/1574#issuecomment-806911999

Received on Thursday, 25 March 2021 15:05:12 UTC