码迷,mamicode.com
首页 > 数据库 > 详细

Apache htaccess 设置 设置expires和max-age缓存 的兼容写法

时间:2014-08-14 10:47:18      阅读:243      评论:0      收藏:0      [点我收藏+]

标签:apache   htaccess   max-age   

htaccess文件内容:

<pre name="code" class="plain"><IfModule mod_headers.c>
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "max-age=604800, public"
</FilesMatch>
<FilesMatch "\.(xml|txt)$">
Header set Cache-Control "max-age=18000, public, must-revalidate"
</FilesMatch>
<FilesMatch "\.(html|htm|php|shtml)$">
Header set Cache-Control "max-age=3600, must-revalidate"
</FilesMatch>
</IfModule>


by default7#zbphp.com

Apache htaccess 设置 设置expires和max-age缓存 的兼容写法,布布扣,bubuko.com

Apache htaccess 设置 设置expires和max-age缓存 的兼容写法

标签:apache   htaccess   max-age   

原文地址:http://blog.csdn.net/default7/article/details/38554977

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!