Gzip not working with Nginx
-
Hello
When we use option “Pre-compress cached pages with Gzip.” on Apache, .gz files are created in the cache folder. However when using Nginx the .gz files are not created, only .html files appear in the cache folder.Nginx server block includes this:
gzip on;
gzip_http_version 1.1;
gzip_vary on;
gzip_comp_level 6;
gzip_proxied any;
gzip_types text/plain text/xml image/svg+xml application/rss+xml application/atom+xml application/xml application/xhtml+xml text/css text/javascript application/json application/javascript application/x-javascript application/font-otf application/font-ttf application/font-woff;Nginx v.1.21.0
PHP 8.0 ( tried also with PHP 7.4 )
Debian Buster
Gzip version 1.9Thanks very much.
- The topic ‘Gzip not working with Nginx’ is closed to new replies.