起用apache expires_module 模块

启用apache expires_module 模块

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

?

?

?

起用apache expires_module 模块

相关文章:

你感兴趣的文章:

标签云: