Welcome! Log In Create A New Profile

Advanced

The truth about gzip_buffers?

May 18, 2013 09:02AM
Reading the docs on nginx.org and searching around, it seems there's no consensus on how we should configure gzip_buffers.

Some guides say that the total buffer needs to be greater than any file you want to gzip, or it will either not gzip the file or truncate it (I'm sure this is not true though!). Other guides suggest arbitrary values.

I guess I have a couple of questions to clear up this confusion:

1. What happens if the response is greater than the total gzip buffer. Will it simply keep the upstream connection open longer while it fills, gzips and transmits the buffers multiple times?

2. If your page size is 4k, does that mean for best efficiency shoudl you keep the size of the buffers to 4k, but just increase the total number of buffers? What is the consideration here?

3. Would having larger buffer sizes potentially allow greater compression because each buffer is compressed individually?

Thanks!
SubjectAuthorPosted

The truth about gzip_buffers?

spdygMay 18, 2013 09:02AM

Re: The truth about gzip_buffers?

Maxim DouninMay 20, 2013 07:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 65
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready