Re: [CSP] Directive to disallow a response from being used as a Service Worker

On Thu, Jul 24, 2014 at 8:52 AM, Jeffrey Yasskin <jyasskin@google.com>
wrote:

> > On Thu, Jul 24, 2014 at 4:04 AM, Devdatta Akhawe <dev.akhawe@gmail.com>
> > wrote:
> >> For request headers, how about a "CH-Context: ServiceWorker"? That makes
> >> more sense to me than "Service-Worker: script" and it also follows the
> >> client hint format.
> >
> > This seems like a reasonable way of pushing the data up to the server,
> and
> > it's probably useful for server-side response prioritization regardless:
> > Ilya? WDYT?
>
> I've spec'ed this suggestion at
> https://github.com/slightlyoff/ServiceWorker/pull/384. Feel free to
> tell us to spec something else, of course.


FWIW, the CH- prefix may be unnecessary and you can simplify it to just
"CSP" and "Context". Some background:
https://github.com/igrigorik/http-client-hints/issues/24

ig

Received on Thursday, 24 July 2014 17:31:37 UTC