Skip to content
No description or website provided.
C Perl
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
t
.hgtags
CHANGES
LICENSE
README
config
ngx_http_gunzip_filter_module.c

README

Gunzip module for nginx.

This module allows gunzipping responses returned with Content-Encoding: gzip
for clients that doesn't support it.  It may be usefull if you prefer to store
data compressed (to save space or disk/network IO) but do not want to penalize
clients without gzip support.

Note well: only responses with Content-Encoding set to gzip before this module
are handled (e.g. using "add_header Content-Encoding gzip;" isn't enough as it
happens after).  As of now only proxy and fastcgi are able to do so.

This module was designed to work with nginx 0.8.* (though it should work with
0.7.* too).

Configuration directives:

    gunzip (on|off)

        Context: http, server, location
        Default: off

        Switches gunzip.

    gunzip_buffers <number> <size>

        Context: http, server, location
        Default: 32 4k/16 8k

        Specifies number and size of buffers available for decompression.

Usage:

    location /storage/ {
        gunzip on;
        ...
    }

To compile nginx with gunzip module, use "--add-module <path>" option to nginx
configure.
Something went wrong with that request. Please try again.