Problem with GZIP

Reinis Rozitis r at roze.lv
Mon Oct 3 14:58:57 UTC 2011


> Using firefox´s plg-in firebug I can check gzip support it´s not enabled:
> http://10.128.50.101/css/blueprint/screen.css

Your configuration ( http://forum.nginx.org/read.php?2,216030,216213#msg-216213 ) is missing text/css from gzip_types. Which is 
returned by nginx so the gzip module doesn't do anything:

2011/09/29 07:44:01 [debug] 14365#0: *4 http filename: "/var/www/appname/web/css/administration/modules/dashboard.css"
2011/09/29 07:44:01 [debug] 14365#0: *4 HTTP/1.1 200 OK
Server: nginx/1.1.4
Date: Thu, 29 Sep 2011 11:44:01 GMT
Content-Type: text/css
                        ^^^^^^^

The line probably should be (add or remove additional document types if needed):

gzip_types        text/plain text/css text/xml application/x-javascript;



p.s. Also the IE regex can be simplified:
gzip_disable msie6;

rr 



More information about the nginx mailing list