]> git.kaiwu.me - nginx.git/commit
Upstream: different header lists for cached and uncached requests.
authorRoman Arutyunyan <arut@nginx.com>
Wed, 19 Nov 2014 14:33:23 +0000 (17:33 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Wed, 19 Nov 2014 14:33:23 +0000 (17:33 +0300)
commit8898c97dbd493d1e8adcfaacdd6d19e8b471c2d3
tree277572925380ec1e1ff31daf2ab1a2df9e032c4f
parentbcf6b11a347303960003970614d1556c73bde4ae
Upstream: different header lists for cached and uncached requests.

The upstream modules remove and alter a number of client headers
before sending the request to upstream.  This set of headers is
smaller or even empty when cache is disabled.

It's still possible that a request in a cache-enabled location is
uncached, for example, if cache entry counter is below min_uses.
In this case it's better to alter a smaller set of headers and
pass more client headers to backend unchanged.  One of the benefits
is enabling server-side byte ranges in such requests.
src/http/modules/ngx_http_fastcgi_module.c
src/http/modules/ngx_http_proxy_module.c
src/http/modules/ngx_http_scgi_module.c
src/http/modules/ngx_http_uwsgi_module.c