Others

How to Enable Gzip on Nginx WordPress Website

Gzip is enabled automatically via the settings page of WP Fastest Cache for Apache servers but Gzip cannot be enabled automatically in the Nginx servers so you have to enable it manually.

You need to add the following code into /etc/nginx/nginx.conf to enable gzip on nginx servers.

gzip on;
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types image/svg+xml text/plain text/html text/xml text/css text/javascript application/xml application/xhtml+xml application/rss+xml application/javascript application/x-javascript application/x-font-ttf application/vnd.ms-fontobject font/opentype font/ttf font/eot font/otf;

 

 

Do you like this post? Tell us your opinion of this post in the comment section below. What’s more, don’t forget to use the share buttons below also to share this post with your friends on social media.

Get More Updates  from Ofofonobs via Twitter and Facebook
For Music/Video/Mixtape promotion on Ofofonobs.com, Call or WhatsApp 08114313795 or Read how to upload your songs on ofofonobs.com

Oluwaseun

Ikuesan Oluwaseun (CEO OFOFONOBS) is a Nigerian news carrier blogger, writer, entrepreneur and a web developer. We bring you the Nigerian News, Music and All Informative Messages On This Medium. Connect With Me Via: IG/Twitter: @ofofonobs Call/Whatsapp: +2348114313795

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Related Articles