Max-age=0 from Proxy only

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:
http://i.imgur.com/BakMD.png

Thanks.

Regards,

Justin D. http://www.twitter.com/jdorfman

NetDNA http://www.netdna.com
The Science of Acceleration

On 09/05/2012 00:07, Justin D. 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:
http://i.imgur.com/BakMD.png
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.

Eliezer


nginx mailing list
[email protected]
nginx Info Page


Eliezer C.
https://www1.ngtech.co.il
IT consulting for Nonprofit organizations
eliezer ngtech.co.il

Setting s-maxage to a high value and while simultaneously fixing maxage
to 0 should do the job. Read the specs [1] for details.

[1] RFC 2616 - Hypertext Transfer Protocol -- HTTP/1.1