Accept-CH-Lifetime
服务器设置 Accept-CH-Lifetime
标头以指定Accept-CH
标头值的持久性,该值指定客户端应在后续请求中包括哪些Client Hints (en-US)标头。
Header type | Response header |
---|---|
Forbidden header name | ? |
备注: Client Hints (en-US)只能在安全源(通过 TLS)上访问。所有安全的请求都应该持久化 Accept-CH 和 Accept-CH-Lifetime 头,以确保Client Hints (en-US)可靠地发送。
语法
Accept-CH-Lifetime: <age>
示例
Accept-CH: Viewport-Width, DPR Accept-CH-Lifetime: 86400
浏览器兼容性
BCD tables only load in the browser