Accept-CH
Accept-CH
标头由服务器设置,以指定客户端应在后续请求中应包含哪些客户端客户端提示提示标头。
标头类型 | 响应标头 |
---|---|
禁止修改的标头 | 否 |
列入 CORS 白名单的请求标头 | 否 |
备注:
客户端提示只能在安全源(通过 TLS)上访问。所有安全的请求都应该持久化 Accept-CH
标头,以确保客户端提示可靠地发送。
语法
http
Accept-CH: <comma separated list of client hint headers>
示例
http
Accept-CH: Viewport-Width, Width
Vary: Viewport-Width, Width
备注: 请牢记要根据所接受的客户端提示更改响应。
规范
Specification |
---|
HTTP Client Hints # section-3.1 |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Accept-CH client hint accept (response) header | ||||||||||||
Content-DPR token | ||||||||||||
DPR token | ||||||||||||
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 | ||||||||||||
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.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.