Accept-CH-Lifetime

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

已棄用: 不推薦使用此功能。雖可能有一些瀏覽器仍然支援它,但也許已自相關的網頁標準中移除、正準備移除、或僅為了維持相容性而保留。避免使用此功能,盡可能更新現有程式;請參考頁面底部的相容性表格來下決定。請注意:本功能可能隨時停止運作。

非標準: This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

警告:草案第 8 版中,此標頭已经从規範中移除。

Accept-CH-Lifetime 標頭由伺服器設置,用於指定使用 Accept-CH 所指定的用戶端提示標頭的持久性,用戶端應該在後續請求中包括這些標頭。

標頭類型 回應標頭
禁止修改的標頭
CORS 安全清單回應標頭

備註: 用戶端提示僅在安全來源(透過 TLS)上可訪問。應該對所有安全請求持久化 Accept-CHAccept-CH-Lifetime 標頭,以確保可靠地發送用戶端提示。

語法

http
Accept-CH-Lifetime: <age>

範例

http
Accept-CH: Viewport-Width
Accept-CH-Lifetime: 86400

瀏覽器相容性

BCD tables only load in the browser

參見