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

Maxim Dounin mdounin at
Wed Jul 6 11:26:22 MSD 2011


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 Dounin

More information about the nginx mailing list