HTTP proxy directives
proxy_cache_convert_head directive
HTTP, server, location; default on. If disabled, include request method in the cache key. Available since 1.9.7.
Formal Syntax & Structure
nginx syntaxnginx
proxy_cache_convert_head on | off;Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| state | on | off | Convert HEAD to GET for caching; if disabled, account for request method in cache key. |
Working Example
Example Snippetnginx
proxy_cache_convert_head on;