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 -

c# - Retrieve google contact -

javascript - How to insert selected radio button value into table cell -