Age

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

Age 標頭包含物件在代理快取中的時間(以秒為單位)。

Age 標頭通常接近零。如果是 Age: 0,則可能是從原始伺服器提取的;否則,通常是作為代理的當前日期和 HTTP 回應中包含的 Date 通用標頭之間的差異計算的。

標頭類型 回應標頭
禁止修改的標頭

語法

http
Age: <delta-seconds>

指令

<delta-seconds>

一個非負整數,表示物件在代理快取中的時間(以秒為單位)。

範例

http
Age: 24

規範

Specification
HTTP Caching
# field.age

瀏覽器相容性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
Age

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

參見