Proxy cache max size

SplitIce mat999 at
Sun Jul 1 16:56:47 UTC 2012

I came up with a crude solution, proxy_max_temp_file_size. By limiting the
max size in cached paths to 50mb I should make it impossible for someone to
store GBs of data to the disk before the cache manager runs.

On Sun, Jul 1, 2012 at 2:11 AM, Brian Akins <brian at> wrote:

> On Jun 30, 2012, at 3:20 AM, SplitIce wrote:
> > Hmm this presents a rather large issue for me.
> >
> > Is it possible to get the upstream response size in lua and set a
> variable to influence proxy_no_cache? If it is ill learn lua.
> By the time Lua gets involved, the response has already been cached (or
> not).
> You could do your own cache instead of proxy_cache, of course.  I have
> some things that store the "cache" in redis, for example. Could be
> memcache, custom cache, etc.
> --Brian
> _______________________________________________
> nginx mailing list
> nginx at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list