Max-age=0 from Proxy only

Eliezer Croitoru eliezer at
Tue May 8 21:17:56 UTC 2012

On 09/05/2012 00:07, Justin Dorfman wrote:
> Hello All,
> What is the best way to cache a file from an origin to a proxy server
> (nginx) with a long max-age then change the max-age to 0 when the file
> is being downloaded from the Proxy.
> If that is confusing hopefully this illustration will explain it better:
cache is not ment to be cached forever.
i think that you might can use an if statement that will make a 
"location" decision by the source ip or some header.

in most of the proxies you can override the max-age by acls.


> Thanks.
> Regards,
> Justin Dorfman <>
> NetDNA <>™
> The Science of Acceleration™
> _______________________________________________
> nginx mailing list
> nginx at

Eliezer Croitoru
IT consulting for Nonprofit organizations
eliezer <at>

More information about the nginx mailing list