A patch to force the gunzip filter module work

姚伟斌 yaoweibin at gmail.com
Wed Jan 23 03:46:56 UTC 2013


I have used the gunzip filter module to inflate the compressed response.
This module is very efficient and help us a lot. But it It just work when
the request don't send the Accept-Encoding: Gzip header. If the client can
accept compressed response, it will not work at all. I have changed this
module and added a gunzip_force directive. Then it will always inflate the
compressed response when the directive is turned on.

This patch could be helpful for other filter modules, like ssi module and
substitute module etc. It can save the bandwidth with backend servers. In
our company, the intranet bandwidth really kills us.

This patch is from the separated gunzip module. It should be similar with
the Nginx official source code. Hope this be helpful.

Weibin Yao
Developer @ Server Platform Team of Taobao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20130123/4420e0ff/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gunzip_force.patch
Type: application/octet-stream
Size: 1651 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20130123/4420e0ff/attachment-0001.obj>

More information about the nginx-devel mailing list