--- title: Age slug: Web/HTTP/Headers/Age tags: - Caching - HTTP - Response - header ---
Age
標頭代表資源進到代理快取後,經過了幾秒。
Age
標頭通常接近 0。如果你拿到 Age: 0
代表資源剛剛才從後端伺服器抓進來;
不然通常會是快取當下與回應中 {{HTTPHeader("Date")}} 標頭的時間差。
Header type | {{Glossary("Response header")}} |
---|---|
{{Glossary("Forbidden header name")}} | no |
Age: <秒數差>
正整數,代表資源在代理快取放幾秒了。
Age: 24
Specification | Title |
---|---|
{{RFC("7234", "Age", "5.1")}} | Hypertext Transfer Protocol (HTTP/1.1): Caching |
The compatibility table in 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.
{{Compat("http.headers.Age")}}