【发布时间】:2011-07-23 01:42:21
【问题描述】:
这是目前在 www.google.com 上使用的徽标:
http://www.google.com/images/logos/ps_logo2.png
这是它的 HTTP 响应:
HTTP/1.1 200 OK
Content-Type: image/png
Last-Modified: Thu, 05 Aug 2010 22:54:44 GMT
Date: Fri, 25 Mar 2011 16:41:05 GMT
Expires: Fri, 25 Mar 2011 16:41:05 GMT
Cache-Control: private, max-age=31536000
X-Content-Type-Options: nosniff
Server: sffe
Content-Length: 26209
Age: 0
Via: 1.1 localhost.localdomain
Cache-Control 标头表示有效期为 1 年。但Expires 与Date 相同,即立即失效。
为什么不一样?
【问题讨论】:
标签: http caching http-caching