HTTP proxy directives
proxy_cache_methods directive
HTTP, server, location; GET and HEAD always included. Do not enable write methods casually.
Formal Syntax & Structure
nginx syntaxnginx
proxy_cache_methods GET | HEAD | POST ...;Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| method | HTTP method (one or more) | GET and HEAD are included automatically; avoid enabling unsafe or personalized methods. |
Working Example
Example Snippetnginx
proxy_cache_methods GET HEAD;