Welcome! Log In Create A New Profile

Advanced

Re: gzip_types

Maxim Dounin
August 23, 2018 02:02PM
Hello!

On Thu, Aug 23, 2018 at 11:21:02AM +0000, Friscia, Michael wrote:

> What would be the reason that setting
> Gzip_types *;
> Is bad?

Usually there are responses which are not compressible, so trying
to gzip them is just a waste of resources. Also there can be
cases when the client announces gzip support, but in fact have
problems when some types of responses are compressed - for
example, there were problems with compressed javascripts in some
browsers in the past.

If you are sure that in a particular configuration all possible
responses must be gzipped, "gzip_types *;" should be fine. You
may want to limit it to a particular location or server though.

> I’m running into a compression problem and if I set it to *
> everything gzips just fine but if I list them out explicitly the
> type image/jpeg is not being gzip’d via proxy request but all
> others are gzip’d by proxy. Gzip_proxied is set to any.

As long as Content-Type of the response is "image/jpeg", there
should be not difference between "gzip_types *" and "gzip_types
image/jpeg ...". If you see a difference, please provide more
details - full configuration and a debug log would be ideal.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

gzip_types

wickedhangover August 23, 2018 07:22AM

Re: gzip_types

Maxim Dounin August 23, 2018 02:02PM

Re: gzip_types

wickedhangover August 24, 2018 06:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 216
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