gzip compression not working
Igor Sysoev
is at rambler-co.ru
Sat May 24 15:04:14 MSD 2008
On Thu, May 22, 2008 at 01:03:40PM -0500, Christian Billen wrote:
> This is my revised setting, I had to set proxy_set_header for it to
> compress, not sure what it does or why.
proxy_set_header Accept-Encoding "";
disables this header when request is proxied to backend.
However, any proxy_set_header in a locaiton resets proxy_set_header
inherited from previous level, therefore you should add it in these
locaitons instead of global level.
> As for the gzip types, shouldn't text/javascript be compressed? should we
> add it to the mime types?
There are no text/javascript MIME-type. At least in Apache configuration
files.
> Thank you
>
> gzip on;
> gzip_buffers 4 8k;
> gzip_proxied any;
> gzip_types text/plain text/html text/css application/x-javascript
> text/xml application/xml application/xml+rss text/javascript;
> gzip_comp_level 4;
> gzip_http_version 1.0;
> proxy_set_header Accept-Encoding "";
>
>
> On Thu, May 22, 2008 at 12:51 PM, Christian Billen <cbillen at warmlyyours.com>
> wrote:
>
> > Hi guys, ok just removing the file size did work...and the http test as
> > well. Now should I be concerned with gzip_http at all? what is going to
> > give me compression for most clients out there?
> > Thanks for the tip on the types as well.
> >
> > Christian
> >
> >
> > On Wed, May 21, 2008 at 11:24 AM, Calomel <nginxlist at calomel.org> wrote:
> >
> >> Christian,
> >>
> >> Is the test file you are testing larger than 1100 bytes and one of the
> >> formates you listed in gzip_types?
> >>
> >> If you have curl (linux, BSD, ect.) installed you can do your own
> >> header tests with: curl -I --compressed http://localhost
> >>
> >> Nginx "how to"
> >> https://calomel.org/nginx.html
> >>
> >> --
> >> Calomel @ https://calomel.org
> >> Open Source Research and Reference
> >>
> >>
> >> On Wed, May 21, 2008 at 12:24:39AM -0500, Christian Billen wrote:
> >> > Hello,
> >> > I have a fresh new installation of nginx on ubuntu 8.04 (installed via
> >> > apt-get, I believe it is 0.5.x something)
> >> > In my nginx.conf file I have gzip turned on, now I wanted to do a
> >> basic
> >> > test and serving a static html file, but the file does not come
> >> compressed
> >> > at all.
> >> > Here's the snippet of configuration, I tried variations on this
> >> without
> >> > success
> >> > gzip on;
> >> > gzip_min_length 1100;
> >> > gzip_buffers 4 8k;
> >> > gzip_proxied any;
> >> > gzip_types text/plain text/html text/css
> >> > application/x-javascript text/xml application/xml application/xml+rss
> >> > text/javascript;
> >> > gzip_http_version 1.1;
> >> > gzip_comp_level 6;
> >> > Does anyone have any idea why nothing is compressed?
> >> > I've used this [1]http://www.gidnetwork.com/tools/gzip-test.php and
> >> others
> >> > to test the results.
> >> > Thank you so much!
> >> >
> >> >References
> >> >
> >> > Visible links
> >> > 1. http://www.gidnetwork.com/tools/gzip-test.php
> >>
> >>
> >
> >
> > --
> >
> >
> > Christian Billen
> > Director of IT
> > Warmlyyours.com, inc.
> >
> > Phone: (800) 875-5285 ext.800
> > Fax: (847) 550-2600
> > Email: cbillen at warmlyyours.com
> >
> > WarmlyYours
> > Honeywell authorized licensee
> > 2 Corporate Dr., Suite 100
> > Long Grove, Illinois 60047
> >
> > Visit the WarmlyYours website at: www.warmlyyours.com
> >
> > 24/7 Installation Support ? Lifetime Technical Assistance ? Free Design
> > Service
> > This email and any files transmitted with it are confidential and intended
> > solely for the use of the individual or entity to whom they are addressed.
> > If you have received this email in error please notify the system manager.
> > Please note that any views or opinions presented in this email are solely
> > those of the author and do not necessarily represent those of the company.
> >
>
>
>
> --
>
>
> Christian Billen
> Director of IT
> Warmlyyours.com, inc.
>
> Phone: (800) 875-5285 ext.800
> Fax: (847) 550-2600
> Email: cbillen at warmlyyours.com
>
> WarmlyYours
> Honeywell authorized licensee
> 2 Corporate Dr., Suite 100
> Long Grove, Illinois 60047
>
> Visit the WarmlyYours website at: www.warmlyyours.com
>
> 24/7 Installation Support ? Lifetime Technical Assistance ? Free Design
> Service
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you have received this email in error please notify the system manager.
> Please note that any views or opinions presented in this email are solely
> those of the author and do not necessarily represent those of the company.
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list