htaccess 增加静态文件缓存和压缩
作者:互联网
原文链接:http://www.cnblogs.com/showblog/p/3345550.html
增加图片视频等静态文件缓存:
<FilesMatch ".(flv|gif|jpg|jpeg|png|ico|swf)$"> Header set Cache-Control "max-age=2592000" </FilesMatch>
增加文件压缩:
<ifmodule mod_deflate.c> AddOutputFilter DEFLATE html xml php js css </ifmodule>
阿里测:
http://www.alibench.com/
转载于:https://www.cnblogs.com/showblog/p/3345550.html
标签:www,缓存,http,cnblogs,静态,htaccess,html,showblog,com 来源: https://blog.csdn.net/weixin_30596023/article/details/98202087