Erstellen Sie die Datei /etc/nginx/conf.d/gzip.conf mit folgenden Parametern:

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

gzip_types zur Komprimierung anderer Dateitypen finden Sie in /etc/nginx/mime.types

Was this answer helpful? 256 Users Found This Useful (731 Votes)