Welcome! Log In Create A New Profile

Advanced

Re: Compressed page streams detection and optimization

Maxim Dounin
September 12, 2013 07:56AM
Hello!

On Thu, Sep 12, 2013 at 06:07:05AM -0400, dfumagalli wrote:

[...]

> What happens if Nginx gets served by PHP-FPM a compressed page and maybe 1
> compressed .css file + 5 uncompressed .css files and 6 .js?

[...]

> Or does it - hopefully - detect an incoming stream "magic numbers" or
> headers and transparently skips re-compression / wrapping?

Yes, it checks if a response is already compressed based on the
Content-Encoding header, and only compresses the response if it's
not. It's usually enough to just configure/enable gzip at http{}
or server{} level.

--
Maxim Dounin
http://nginx.org/en/donation.html

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

Compressed page streams detection and optimization

dfumagalli September 12, 2013 06:07AM

Re: Compressed page streams detection and optimization

Maxim Dounin September 12, 2013 07:56AM

Re: Compressed page streams detection and optimization

dfumagalli September 12, 2013 10:35AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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