FastCGI directives

fastcgi_no_cache (FastCGI directives)

Contexts: http, server, location. Prevents saving the received FastCGI response when any evaluated argument is nonempty and not the string 0. Does not itself prevent reading an existing cache entry.

Formal Syntax & Structure

nginx syntaxnginx
fastcgi_no_cache string ...;

Parameters & Attributes

NameTypeDescription
stringexpression (one or more)Each evaluated value other than empty or 0 prevents cache storage; pair with lookup policy.

Working Example

Example Snippetnginx
fastcgi_no_cache $private_route $has_cookie;
Nginx Reference