↑ arvau

MDN / Accept-CH header

The HTTP Accept-CH 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.

  </th>
  <td>No</td>
</tr>

Syntax

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 header indicates which values were used to vary the response based on the accepted client hints.

Accept-CH: Sec-CH-Viewport-Width, Sec-CH-Width
Vary: Sec-CH-Viewport-Width, Sec-CH-Width

Specifications

Browser compatibility

See also