Re: [ServiceWorker] Prefetch/prerender & Client id (#210)

@annevk +1, we need both bits of info.

I re-read the [prerendering documentation](http://www.chromium.org/developers/design-documents/prerender). 

I now believe that one can already tell if a request was part of a prerendering scenario by looking at the [page visibility](http://www.w3.org/TR/page-visibility/) of the associated Client (i.e. fetchEvent.client.visibilityState == "[prerender](http://www.w3.org/TR/page-visibility/#pv-prerender)"). 

Would that be enough?
If affirmative, then there doesn't seem to be any spec ask :)

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

Received on Monday, 16 March 2015 04:34:52 UTC