magento1.9参考:[7]优化网站响应速度

2025-05-22 22:32:55

1、使用magento最好使用apache类型的服务器。如果使用IIS服务器的话需要插件才能支持.htaccess文件。首页使用.htaccess利用Cookies你可以使用谷歌网站PageSpeed Insights诊断

magento1.9参考:[7]优化网站响应速度

3、然后在.htaccess中找到下面相似代码(我这里是去掉了#号的)######拭貉强跳######################################## enab造婷用痃le apache served files compression## # Insert filter on all content SetOutputFilter DEFLATE # Insert filter on selected content types only #AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript # Netscape 4.x has some problems... BrowserMatch ^Mozilla/4 gzip-only-text/html # Netscape 4.06-4.08 have some more problems BrowserMatch ^Mozilla/4\.0[678] no-gzip # MSIE masquerades as Netscape, but it is fine BrowserMatch \bMSIE !no-gzip !gzip-only-text/html # Don't compress images SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary # Make sure proxies don't deliver the wrong content Header append Vary User-Agent env=!dont-vary</IfModule>另外一个要修改地方(同样也是去掉php_flag zlib.output_compression前面#号)############################################## enable resulting html compression php_flag zlib.output_compression on

magento1.9参考:[7]优化网站响应速度magento1.9参考:[7]优化网站响应速度magento1.9参考:[7]优化网站响应速度magento1.9参考:[7]优化网站响应速度
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢