Mercurial > hg > nginx
comparison src/http/ngx_http_upstream.h @ 6290:4d5ac1a31d44
Upstream: proxy_cache_convert_head directive.
The directive toggles conversion of HEAD to GET for cacheable proxy requests.
When disabled, $request_method must be added to cache key for consistency.
By default, HEAD is converted to GET as before.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Wed, 11 Nov 2015 15:47:30 +0300 |
parents | 74b6ef56ea56 |
children | 78b4e10b4367 |
comparison
equal
deleted
inserted
replaced
6289:909b5b191f25 | 6290:4d5ac1a31d44 |
---|---|
191 ngx_flag_t cache_lock; | 191 ngx_flag_t cache_lock; |
192 ngx_msec_t cache_lock_timeout; | 192 ngx_msec_t cache_lock_timeout; |
193 ngx_msec_t cache_lock_age; | 193 ngx_msec_t cache_lock_age; |
194 | 194 |
195 ngx_flag_t cache_revalidate; | 195 ngx_flag_t cache_revalidate; |
196 ngx_flag_t cache_convert_head; | |
196 | 197 |
197 ngx_array_t *cache_valid; | 198 ngx_array_t *cache_valid; |
198 ngx_array_t *cache_bypass; | 199 ngx_array_t *cache_bypass; |
199 ngx_array_t *no_cache; | 200 ngx_array_t *no_cache; |
200 #endif | 201 #endif |