A server must announce that it supports client hints, using the Accept-CH
header to specify the hints that it is interested in receiving. When a client that supports client hints receives the Accept-CH
header it can choose to append some or all of the listed client hint headers in its subsequent requests.
For example, following Accept-CH
in a response below, the client could append Width
, Downlink
and Sec-CH-UA
headers to all subsequent requests.
This approach is efficient in that the server only requests the information that it is able to usefully handle. It is also relatively "privacy-preserving", in that it is up to the client to decide what information it can safely share.
There is a small set of low entropy client hint headers that may be sent by a client event if not requested.
Note: Client hints can also be specified in HTML using the <meta>
element with the http-equiv
attribute.
<meta http-equiv="Accept-CH" content="Width, Downlink, Sec-CH-UA" />