Welcome! Log In Create A New Profile

Advanced

Re: nginx gzip_static not following gzip_types

Maxim Dounin
April 24, 2012 04:48AM
Hello!

On Tue, Apr 24, 2012 at 02:36:07AM -0400, ctrlbrk wrote:

> Thanks for the quick reply. It would be nice if there was a simple top
> level directive added to make it follow the gzip_types rule. The
> default behavior of trying to compress images is pretty futile. Even if
> I had my bash script compress images to serve up, the extra
> decompression time on the client would cause the page to be slower, and
> bandwidth savings of probably less than 1% at expense of much, much more
> than 1% increased client CPU.

It doesn't try to compress anything, it's up to you to compress
files you think is ok to compress. The gzip_static just checks if
a '.gz' file present, and returns it to client if it's present
(and client supports gzip).

If you want to avoid file lookup, you may (and probably should)
disable gzip_static for locations you don't want lookup to happen.

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx gzip_static not following gzip_types

ctrlbrk April 24, 2012 02:13AM

Re: nginx gzip_static not following gzip_types

Maxim Dounin April 24, 2012 02:24AM

Re: nginx gzip_static not following gzip_types

ctrlbrk April 24, 2012 02:36AM

Re: nginx gzip_static not following gzip_types

Igor Sysoev April 24, 2012 04:36AM

Re: nginx gzip_static not following gzip_types

Maxim Dounin April 24, 2012 04:48AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 133
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready