相关疑难解决方法(0)

LiveHttpHeaders:哪个缓存控制信息是正确的

使用LiveHttpHeadersfor Firefox 6我试图看看我的css,JS文件是否使用htaccess从Apache使用Headers Module进行缓存.但我很困惑,"Cache-Control"数据中有2个值:

GET /proz/css/global.css HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0
Accept: text/css,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Connection: keep-alive
Referer: http://localhost/proz/
Cookie: PHPSESSID=el34de37pe3bnp4rdtbst1kd43
If-Modified-Since: Fri, 16 Sep 2011 21:15:32 GMT
If-None-Match: "400000000b06a-2999-4ad157e5b4583"
Cache-Control: max-age=0

HTTP/1.1 304 Not Modified
Date: Sat, 17 Sep 2011 03:04:50 GMT
Server: Apache/2.2.17 (Win32) PHP/5.2.8
Connection: Keep-Alive
Keep-Alive: timeout=5, max=99
Etag: "400000000b06a-2999-4ad157e5b4583"
Cache-Control: max-age=604800, public
Vary: Accept-Encoding

哪一个是真实数据,第一个Cache-Control数据(max-age = 0)或后者.

我还想知道在htaccess中使用deflate模块之后如何确保我的JS,CSS,HTML文件被压缩.是的,标题和deflate模块都打开了.

firefox header http cache-control

1
推荐指数
1
解决办法
1707
查看次数

标签 统计

cache-control ×1

firefox ×1

header ×1

http ×1