Age
消息头里包含消息对象在缓存代理中存贮的时长,以秒为单位。.
Age消息头的值通常接近于0。表示此消息对象刚刚从原始服务器获取不久;其他的值则是表示代理服务器当前的系统时间与此应答消息中的通用消息头 Date
的值之差。
Header type | Response header |
---|---|
Forbidden header name | no |
语法
Age: <delta-seconds>
指令
- <delta-seconds>
-
一个非负整数,表示消息对象在缓存代理服务器中存贮的时长,以秒为单位。
示例
Age: 24
规范
Specification | Title |
---|---|
RFC 7234, section 5.1: Age | 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.
Feature | Chrome | Firefox | Edge | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic Support | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) |
Feature | Android | Chrome for Android | Edge mobile | Firefox for Android | IE mobile | Opera Android | iOS Safari |
---|---|---|---|---|---|---|---|
Basic Support | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) |