Dudaevskiy
2/16/2020 - 5:23 PM

активация gzip

Enabling gzip compression for a domain in Plesk

  1. In Plesk, go to Domains > example.com > Apache & nginx Settings.

  2. Add the following directives to the Additional nginx directives field:

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;


**Note:** This is an example. If needed, add other file types in the `gzip_types` section, e.g. `application/javascript`, `application/js`, etc. The full list of available types can be found on a server in the file `/etc/nginx/mime.types`.