Accept-CH-Lifetime

安全上下文: 此项功能仅在一些支持的浏览器安全上下文(HTTPS)中可用。

实验性: 这是一项实验性技术
在将其用于生产之前,请仔细检查浏览器兼容性表格

服务器设置 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

参见