caching - Nginx proxy cache passes GET instead of HEAD to the upstream -


i configured nginx reverse proxy of application server. when turn on proxy cache, passes instead of head upstream application server. i've searched google there's no feasible solution. know how fix this?

we changed nginx source code following: static char* gx_http_proxy_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child) { ... // conf->upstream.cache_methods |= ngx_http_get|ngx_http_head; conf->upstream.cache_methods |= ngx_http_get; ... } works, solution ugly. still keeping on finding more elegant solution...


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -