Patch to allow configuring max content length for proxy caching

Roman Svirsky rsvirsky at gmail.com
Sun May 8 01:52:30 MSD 2011


Hello,

This is something I found very useful. This patch is for limiting
proxy caching to files under a certain size. For example, in your
config file you would do this:

proxy_cache_max_cl 5m;

This would make the proxy only cache files 5m and under.

The following files were modified:

src/http/ngx_http_upstream.h
src/http/modules/ngx_http_proxy_module.c
src/http/ngx_http_upstream.c

You can see the patch here:

http://pastebin.com/JLZpEe8j
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nginx-1.0.1-proxy_cache_max_cl.patch
Type: application/octet-stream
Size: 2514 bytes
Desc: not available
URL: <http://nginx.org/pipermail/nginx-devel/attachments/20110507/cfc8c9b2/attachment.obj>


More information about the nginx-devel mailing list