https://github.com/catap/ngx_http_gunzip_filter_module
https://github.com/catap/ngx_http_gunzip_filter_module
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/catap/ngx_http_gunzip_filter_module
- Owner: catap
- License: other
- Created: 2011-04-21T22:20:54.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2016-11-17T15:48:42.000Z (over 9 years ago)
- Last Synced: 2025-03-29T10:22:09.670Z (over 1 year ago)
- Language: C
- Homepage:
- Size: 102 KB
- Stars: 9
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: CHANGES
- License: LICENSE
Awesome Lists containing this project
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
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 " option to nginx
configure.