HTTP head头中’Age’的含义
The Age response-header field conveys the sender's estimate of the amount of time since the response (or its revalidation) was generated at the origin server.
This information is used by intermediate proxies to convey an estimate of how old a stored response is:
HTTP/1.1 requires origin servers to send a Date header, if possible, with every response, giving the time at which the response was generated (see section 14.18). We use the term "date_value" to denote the value of the Date header, in a form appropriate for arithmetic operations.
HTTP/1.1 uses the Age response-header to convey the estimated age of the response message when obtained from a cache. The Age field value is the cache's estimate of the amount of time since the response was generated or revalidated by the origin server.
Furthermore, the Age header field is intended to be used by intermediate caches only:
The presence of an Age header field in a response implies that a response is not first-hand.
That means the presence of the header field Age: 0 means that the received response was sent by an intermediate cache and is only zero seconds old. So it was probably just fetched from the origin server before sending it to the client.
从上面可以看出,Age表示中间环节(CDN或缓存服务器)从服务器拿到数据之后的时间。如果是客户端看到是0秒,代表是从服务器拿到的最新的数据。
- 下一篇: Linux下C高手成长过程----经典书籍推荐
- 上一篇: Etag和Expire
相关推荐
- php定义function时,函数名前加“&”符号是什么意思?
- Posted on 02月27日
- 45个实用的JavaScript技巧、窍门和最佳实践
- Posted on 01月05日
- LVS+Keepalived-DR模式
- Posted on 03月10日
- smarty date_format和truncate的用法
- Posted on 02月15日