apache配置expires_module缓存静态文件
Apache版本apache_2.2.14-win32-x86-openssl-0.9.8k.msi
修改httpd.conf文件:
1,去掉#LoadModule expires_module modules/mod_expires.so这行前面的#号
2,增加如下配置
(Status-Line)HTTP/1.1 200 OKAccept-RangesbytesCache-Controlmax-age=172800ConnectionKeep-AliveContent-Length561276Content-Typeimage/jpegDateFri, 18 Nov 2011 02:18:18 GMTETag"2000000010a90-8907c-46ea3c3de04ac"ExpiresSun, 20 Nov 2011 02:18:18 GMTKeep-Alivetimeout=5, max=99Last-ModifiedTue, 14 Jul 2009 05:32:31 GMTServerApache/2.2.14 (Win32)