firefox不发送标头:if-modified-since收到Last-modified后的响应。 例如: 在Firefox中访问load a website in webview,在多次加载此页面后,按F12,在屏幕截图下方的控制台中显示。
Response :
Age 123613
Cache-Control public, max-age=31536000
Content-Length 93868
Content-Type text/javascript; charset=UTF-8
Date Fri, 16 Mar 2012 04:17:48 GMT
Expires Thu, 24 May 2012 14:47:48 GMT
Last-Modified Wed, 23 Nov 2011 21:10:59 GMT
Server sffe
Vary Accept-Encoding
Via 1.1 HSPROXY08
Warning 113 HSPROXY08
X-Content-Type-Options nosniff
X-XSS-Protection 1; mode=block
Request:
Accept */*
Accept-Encoding gzip, deflate
Accept-Language zh-cn,zh;q=0.5
Host ajax.googleapis.com
Proxy-Connection keep-alive
Referer https://stackoverflow.com/questions/5066087/load-a-website-in-webview
User-Agent Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20100101 Firefox/10.0.2
我发现请求标题中没有“if-modified-since”,这就是为什么?
我认为响应状态代码应该是304,但它是200。
谢谢..