xin

proxy_cache_methods

HTTP proxy: Selects request methods eligible for caching.

Syntaxproxy_cache_methods method ...;
Contextshttpserverlocation

Behavior

Use with the matching upstream handler and a configured cache zone. Child-scope cache lists replace inherited lists.

Example

proxy_cache_methods GET HEAD;