xin

proxy_cache_valid

HTTP proxy: Sets the cache lifetime for response status codes.

Syntaxproxy_cache_valid [code ...] time;
Contextshttpserverlocation

Behavior

Use with the matching upstream handler and a configured cache zone. Child-scope cache lists replace inherited lists.

Example

proxy_cache_valid 200 10m;