Re: [ServiceWorker] What's the interaction with referrer policy (#404)

> 1) It seems for the initial load the referrer policy is that of the document or worker that invokes register(). Subsequent loads for updates won't have a referrer, unless perhaps update() was invoked. Depends a bit on how that is defined. @jungkees should know.

Yes, it sounds reasonable that fetching a service worker triggered by either `navigator.serviceWorker.register()` or `registration.update()` uses a referrer and a referrer policy of its associated service worker clients (the environment settings object of the document or the worker), and the updates triggered by user agents (by invoking Soft Update algorithm) use no referrer and no referrer policy. I think I'll need to update some bits: making `registration.update()` invoke Update algorithm rather than Soft Update algorithm, setting relevant clients for requests, etc.

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/404#issuecomment-72798105

Received on Wednesday, 4 February 2015 06:34:33 UTC