Welcome! Log In Create A New Profile

Advanced

nginx not gunzipping static files

Posted by Fleshgrinder 
nginx not gunzipping static files
August 11, 2009 05:46PM
My nginx configuration for compression looks like the following:
[code]
## Komprimierung
gzip on;
gzip_proxied any;
gzip_http_version 1.1;
gzip_min_length 1100;
gzip_comp_level 9;
gzip_buffers 16 8k;
gzip_types text/plain text/htm text/xml text/css application/x-javascript application/xml application/xml+rss text/javascript application/atom+xml image/svg+xml;
gzip_vary on;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
[/code]
The problem is, nginx isn't compressing all files as it should. Please also have a look at the attached screenshot of YSlow.

Any help and/or suggestions are welcome. If you need more information on any of my setup, just ask for it.

Kindest regards

--------------------------------------------------------------------------------
//richard.fussenegger.info
//movlib.org
Attachments:
open | download - nginx_not_compressing_yslow.jpg (101.2 KB)
Re: nginx not gunzipping static files
September 29, 2009 12:02PM
I see one problem in your config above:
The MIME type for HTML files is "text/html" , not "text/htm" . Maybe that helps a bit.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 86
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready