admin管理员组文章数量:1406926
I am trying to make Enable compression 100% for my website speed optimization but I can not get the result. I tried plugins: Autoptimize, w3 total cache, wp rocket, clean cache, and others. The web host is Bluehost.
Here is the website link: /
I am new here. Hope someone can help me.
I am trying to make Enable compression 100% for my website speed optimization but I can not get the result. I tried plugins: Autoptimize, w3 total cache, wp rocket, clean cache, and others. The web host is Bluehost.
Here is the website link: https://airytravel/
I am new here. Hope someone can help me.
1 Answer
Reset to default 0I assume you want to enable gzip compression for your website but it cannot be done on the WordPress itself, first, it has to be supported by the server and then server configuration needs to be changed. If your hosting is on Apache (most likely it is) then you can add these lines into .htaccess file:
# BEGIN GZIP COMPRESSION
<IfModulemod_gzip.c>
mod_gzip_onYes
mod_gzip_dechunkYes
mod_gzip_item_includefile.(html?|txt|css|js|php|pl)$
mod_gzip_item_includehandler^cgi-script$
mod_gzip_item_includemime^text/.*
mod_gzip_item_includemime^application/x-javascript.*
mod_gzip_item_excludemime^image/.*
mod_gzip_item_excluderspheader^Content-Encoding:.*gzip.*
</IfModule>
# END GZIP COMPRESSION
If your hosting uses NGINX then you have to modify nginx.conf file and put this code:
gzipon;
gzip_comp_level2;
gzip_http_version1.0;
gzip_proxied any;
gzip_min_length1100;
gzip_buffers168k;
gzip_types text/plain text/html text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_disable"MSIE [1-6].(?!.*SV1)";
gzip_varyon;
本文标签: pluginsEnable compression
版权声明:本文标题:plugins - Enable compression 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744975945a2635516.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论