日期:2014-05-17 浏览次数:20848 次
1、启用expires_module 模块
LoadModule expires_module modules/mod_expires.so
2、打开expires
ExpiresActive On3、设置规则
# expire GIF images after a month in the client's cache ExpiresByType image/gif A2592000 ExpiresByType image/png A2592000 ExpiresByType image/jpeg A2592000 # HTML documents are good for a week from the # time they were changed ExpiresByType text/html M604800 ExpiresByType text/css M604800
更多请看官方:http://httpd.apache.org/docs/2.0/en/mod/mod_expires.html
?