HTTP Client Hints

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 using 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.


This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.