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!
Subject Author Posted

The truth about gzip_buffers?

spdyg May 18, 2013 09:02AM

Re: The truth about gzip_buffers?

Maxim Dounin May 20, 2013 07:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 94
Record Number of Users: 7 on October 18, 2016
Record Number of Guests: 386 on August 02, 2016
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready