igrigorik / http-client-hints

402 stars 24 forks source link

Update examples with latest header #70

Closed ebidel closed 7 years ago

ebidel commented 7 years ago

I noticed the examples in this explainer use separate headers for DPR and Width and Viewport-Width. Is that old?

Shouldn't they be using Accept-CH, with those as values?

igrigorik commented 7 years ago

No, that should be correct..

Does that make sense?

ebidel commented 7 years ago

Yea, makes perfect sense. I thinkp part of my confusion was that the client can do the opt-in:

<meta http-equiv="Accept-CH" content="Viewport-Width">