- From: Anne van Kesteren <notifications@github.com>
- Date: Thu, 29 Jan 2015 08:57:16 -0800
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Thursday, 29 January 2015 16:57:45 UTC
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. 2) The service worker can figure out what the page wanted as referrer through `Request.prototype.referrer`. However, the service worker currently has no way to pass this through. For that we would need to allow setting the referrer to any same-origin URL I think. 3) That uses the referrer policy of the service worker itself. Just like fetches use the CSP policy of the service worker. --- Reply to this email directly or view it on GitHub: https://github.com/slightlyoff/ServiceWorker/issues/404#issuecomment-72060949
Received on Thursday, 29 January 2015 16:57:45 UTC