Proxy_cache_valid directive and cache control headers from up-stream web servers

Hi,
If I set “proxy_cache_valid 200 10m;”, while a page returned by
up-stream web server has a “Cache-contro:max-age=30s” header, then how
long this page will be cached?

Thanks for your help in advance.

xwk.

Hello!

On Wed, Jul 06, 2011 at 09:43:27AM +0800, Weikai Xie wrote:

Hi,
If I set “proxy_cache_valid 200 10m;”, while a page returned by
up-stream web server has a “Cache-contro:max-age=30s” header, then how
long this page will be cached?

Cache-Control header takes precedence unless ignored with
proxy_ignore_headers directive.

Maxim D.