HTTP proxy directives

proxy_no_cache directive

HTTP, server, location; no default condition. A nonempty argument other than 0 prevents storage of the response.

Formal Syntax & Structure

nginx syntaxnginx
proxy_no_cache string ...;

Parameters & Attributes

NameTypeDescription
stringexpression (one or more)Prevent storage when any expression is neither empty nor 0; does not by itself skip cache lookup.

Working Example

Example Snippetnginx
proxy_no_cache $has_auth $has_cookie;
Nginx Reference