[wd_asp elements=’search’ ratio=’100%’ id=1]

How to add Gzip compression on Plesk – Apache nginx

9th March 2020

Random Coding

random coding category codehaven

To speed your website up everything should be using GZIP. This will make the files smaller for use on the internet.
You will NOT need to touch the file .htaccess, as this code is applied in the PLESK dashboard area.
Once your in your PLESK area find the domain you wish to influence and click on the link called “Apache and nginx Settings”
Add Gzip compression on Plesk
Once inside that, go to the bottom “Additional nginx directives” and add the following code

gzip on;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
gzip_proxied any;
gzip_comp_level 5;
gzip_types text/plain text/css application/javascript application/x-javascript text/xml application/xml application/rss+xml text/javascript image/x-icon image/bmp image/svg+xml;
gzip_vary on;

plesk
plesk

Then just press OK and test using gtmetrix.com