正在为你努力加载中........

点滴记录 分享
2
2013-12
首页 >> apache >> apache开启静态缓存expires_module

apache开启静态缓存expires_module

apche开启静态缓存,需要一个expires_module模块

LoadModule expires_module modules/mod_expires.so
<IfModule expires_module>
    ExpiresActive on
    ExpiresByType text/css A7200000
    ExpiresByType application/x-javascript A7200000
    ExpiresByType application/javascript A7200000
    ExpiresByType text/html A7200000
    ExpiresByType image/jpeg A7200000
    ExpiresByType image/gif A7200000
    ExpiresByType image/png A7200000
    ExpiresByType image/x-icon A7200000
</IfModule>


作者:一根烟的寂寞 分类:apache
浏览:916 评论:0

发表评论: