是否启用了缓存?

时间:2014-05-13 15:37:50

标签: http caching

我怀疑是否启用了缓存。它以为我做了,但谷歌速度测试告诉我它不是,所以'seositecheckup'测试。这些是HTTP标头:

    HTTP/1.1 200 OK 
Date: Tue, 13 May 2014 15:33:37 GMT 
Server: Apache/2.2.26 (Unix) mod_ssl/2.2.26 OpenSSL/1.0.1e-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 
X-Powered-By: PHP/5.4.24 
Expires: Thu, 19 Nov 1981 08:52:00 GMT 
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 
Pragma: no-cache 
Set-Cookie: TCT_SESS=412bfe220023a4bf9b1233f24748796b; path=/; domain=.asecret.nl 
Cache-Control: max-age=86400, public 
Vary: Accept-Encoding 
Content-Encoding: gzip 
Content-Length: 14540 
Connection: close 
Content-Type: text/html 

expires_module和headers_module都加载了,在我的pre-main-include中的WHM中(应该把文本放在httpd.conf的顶部)我有这个:

# 1 DAY
<FilesMatch "\.(html|htm|php|cgi|pl|css|js)$">
Header set Cache-Control "max-age=86400, public"
</FilesMatch>

# 1 MONTH
<FilesMatch "\.(jpg|jpeg|png|gif|swf)$">
Header set Cache-Control "max-age=2630000, public"
</FilesMatch>

我很困惑,是否已启用,或者不是?

0 个答案:

没有答案