gzip_static - any way to not have to store two files?

Maxim Dounin mdounin at mdounin.ru
Thu Jan 21 12:47:55 MSK 2010


On Wed, Jan 20, 2010 at 10:59:40PM -0500, arianna wrote:

> ok...i didn't realize is was uncompressing a response on the 
> fly... what i wanted was some variation on gzip_static that 
> could take file.gz in the file system and use it to return 
> compressed/or uncompressed data to the client.  i guess i'm out 
> of luck correct?

With "gzip_static always" patch you are able to return .gz even to 
clients which doesn't support it.

With gunzip filter you are able to gunzip gzipped responses for 
clients which doesn't support gzip.

When used together they allow exactly what you asked for - one .gz 
file on filesystem, returned unmodified to clients which does 
support gzip, uncompression on the fly for clients which 
does not support gzip.

Maxim Dounin

More information about the nginx mailing list