服务器将这些头文件发送到客户端:
Cache-Control:private
Connection:keep-alive
Content-Encoding:gzip
Content-Type:text/html
Date:Sun, 27 Nov 2011 11:10:38 GMT
ETag:"12341234"
Set-Cookie:connect.sid=e1u...7o; path=/; expires=Sun, 27 Nov 2011 11:40:38 GMT; httpOnly
Transfer-Encoding:chunked
last-modified:Sat, 26 Nov 2011 21:42:45 GMT
我希望客户端验证服务器上的文件是否没有更改,如果文件有"304",则发送一个"200".
Firefox发送:
if-modified-since: Sat, 26 Nov 2011 21:42:45 GMT
if-none-match: "12341234"
为什么chrome在刷新页面时不发送相同的消息?我追求的是那种行为.Net正在运行:
context.Response.Cache.SetCacheability(HttpCacheability.ServerAndPrivate)