使用YSlow发现所在服务器上传输出来的文件Expires头都置为Expires: Thu, 19 Nov 1981 08:52:00 GMT了,非常奇怪的一个时间(莫非apache或者php某个开发人员是这个时候出生的),YSlow给出了加载expires模块的建议。 加载expires模块之后,编辑httpd.conf加入如下配置: # enable expirations ExpiresActive On # expire GIF images after a day from the time they were accessed ExpiresByType image/gif image/jpg A86400 # HTML documents are ...

, ,

今天下载了Yahoo的给Firefox开发的YSlow插件,这个插件确实不错,能够给出不少优化建议,发现所在主机没有开启deflate压缩。 首先加载mod_deflate。 在httpd.conf中加入 <Location /> # Insert filter SetOutputFilter DEFLATE # Netscape 4.x has some problems… BrowserMatch ^Mozilla/4 gzip-only-text/html # Netscape 4.06-4.08 have some more problems BrowserMatch ^Mozilla/4\.0[678] no-gzip # MSIE masquerades as Netscape, but it is fine # Browse...

,