Accept-CH header
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The HTTP Accept-CH response header may be set by a server to specify which client hint headers should be included by the client in subsequent requests.
To ensure client hints are sent reliably, the Accept-CH header should be persisted for all secure requests.
| Header type | Response header |
|---|---|
| CORS-safelisted response header | No |
Syntax
http
Accept-CH: <client-hints-headers>
// Client hint headers in a comma-separated list
Accept-CH: <ch-header-one>, <ch-header-two>
Examples
Client hint response headers
The following response headers indicate that the server accepts Sec-CH-Viewport-Width and Sec-CH-Width device client hints in subsequent requests.
The Vary header indicates which values were used to vary the response based on the accepted client hints.
http
Accept-CH: Sec-CH-Viewport-Width, Sec-CH-Width
Vary: Sec-CH-Viewport-Width, Sec-CH-Width
Specifications
| Specification |
|---|
| HTTP Client Hints # section-3.1 |
Browser compatibility
| desktop | mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
Accept-CH client hint accept (response) header
|
|
|
|
|
|
|
|
|
|
|
|
|
Content-DPR token
|
|
|
|
|
|
|
|
|
|
|
|
|
DPR token
|
|
|
|
|
|
|
|
|
|
|
|
|
Device-Memory token
|
|
|
|
|
|
|
|
|
|
|
|
|
Sec-CH-DPR token
|
|
|
|
|
|
|
|
|
|
|
|
|
Sec-CH-Device-Memory token
|
|
|
|
|
|
|
|
|
|
|
|
|
Sec-CH-UA token
|
|
|
|
|
|
|
|
|
|
|
|
|
Sec-CH-UA-Arch token
|
|
|
|
|
|
|
|
|
|
|
|
|
Sec-CH-UA-Full-Version token
|
|
|
|
|
|
|
|
|
|
|
|
|
Sec-CH-UA-Mobile token
|
|
|
|
|
|
|
|
|
|
|
|
|
Sec-CH-UA-Model token
|
|
|
|
|
|
|
|
|
|
|
|
|
Sec-CH-UA-Platform token
|
|
|
|
|
|
|
|
|
|
|
|
|
Sec-CH-UA-Platform-Version token
|
|
|
|
|
|
|
|
|
|
|
|
|
Sec-CH-Viewport-Height token
|
|
|
|
|
|
|
|
|
|
|
|
|
Sec-CH-Viewport-Width token
|
|
|
|
|
|
|
|
|
|
|
|
|
Sec-CH-Width token
|
|
|
|
|
|
|
|
|
|
|
|
|
Viewport-Width token
|
|
|
|
|
|
|
|
|
|
|
|
|
Width token
|
|
|
|
|
|
|
|
|
|
|
|
|
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Experimental. Expect behavior to change in the future.
- Non-standard. Check cross-browser support before using.
- Deprecated. Not for use in new websites.