xin

fastcgi_cache_valid

FASTCGI: Sets the cache lifetime for response status codes.

Syntaxfastcgi_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

fastcgi_cache_valid 200 10m;