HTTP proxy directives

proxy_cache directive

HTTP, server, location; default off. Select a defined cache zone or disable inherited caching.

Formal Syntax & Structure

nginx syntaxnginx
proxy_cache zone | off;

Parameters & Attributes

NameTypeDescription
zonezone name | offSelect a declared cache zone or disable inherited caching.

Working Example

Example Snippetnginx
proxy_cache public_docs;
Nginx Reference