Skip to content

Comment on Downgrade User Agent Client Hints to 'harmful'parent

Comments

No it doesn't? Ever heard of Accept or Lang headers? Or cookies for that matter? Dynamic content?

Agreed, and thanks for bring up the Accept header. The author seems uninformed about HTTP's built in Content Negotiation. They write about servers using the User-Agent header, specifically talking about WebP. Accept: "image/webp" works just fine for the major CDNs regardless of the UA.

Accept and content negotiation has a long established history, and content negotiation is different than the server making decisions based upon metadata.

It's one thing for the client to say "give me this resource in this format" its another for the server to say "oh you're coming from version X.Y of OS Z, I know what you really want."

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.