HTTP proxy directives

proxy_cache_purge directive

HTTP, server, location context. Default: none. Introduced: 1.5.7. Commercial subscription only; removes matching cache entries, not CDN/browser copies. Use only in an authorized controlled purge workflow.

Formal Syntax & Structure

nginx syntaxnginx
proxy_cache_purge string ...;

Parameters & Attributes

NameTypeDescription
stringexpression (one or more)Commercial-only purge trigger; nonempty and nonzero condition requests removal of the matching key. Restrict authorization.

Working Example

Example Snippetnginx
# Commercial only; no purge endpoint provided.
Nginx Reference