Jump to content

Client Hints

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Pyfisch (talk | contribs) at 10:17, 22 May 2021 (→‎External links: replace RFC magic link with RFC template, see Help:Magic links). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

HTTP Client Hints (or simply Client Hints) are a set of HTTP Header Fields for proactive content negotiation in the Hypertext Transfer Protocol (HTTP).[1] The client can advertise information about itself through these fields so the server can determine which resources should be included in its response.

As an abstract example, the server might indicate in an Accept-CH response header of an initial request that it can accept device pixel ratio information from the client. The client will then make future requests a header field containing these details, and the server will respond with images appropriate for that device pixel ratio.

References

  1. ^ Grigorik, I.; Weiss, Y. (February 2021). HTTP Client Hints. IETF. doi:10.17487/RFC8942. RFC 8942. Retrieved February 11, 2021.