FastCGI directives

fastcgi_cache_bypass (FastCGI directives)

Contexts: http, server, location. Prevents serving a cached FastCGI response when any evaluated argument is nonempty and not the string 0. Does not itself prevent storage.

Formal Syntax & Structure

nginx syntaxnginx
fastcgi_cache_bypass string ...;

Parameters & Attributes

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

Working Example

Example Snippetnginx
fastcgi_cache_bypass $private_route $has_cookie;
Nginx Reference