HTTP proxy directives
proxy_cache_bypass directive
HTTP, server, location; no default condition. A nonempty argument other than 0 prevents cache lookup reuse.
Formal Syntax & Structure
nginx syntaxnginx
proxy_cache_bypass string ...;Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| string | expression (one or more) | Skip cache lookup if any expression is neither empty nor 0; pair with no-cache policy to prevent storage. |
Working Example
Example Snippetnginx
proxy_cache_bypass $has_auth $has_cookie;