Multiple upstream_cache_status headers in response in a dual-cache configuration

Maxim Dounin mdounin at mdounin.ru
Fri Oct 6 11:26:42 UTC 2017


Hello!

On Fri, Oct 06, 2017 at 03:05:52AM -0400, rnmx18 wrote:

[...]

> For the 6th request, I see the following:
> 
> < X-UpStream-Server-Cache-Status: HIT
> < X-UpStream-Server-Cache-Status: HIT
> 
> Why am I getting the header twice for the 6th request. In this case, the
> request is HIT by the SSD cache itself, and there is no request sent to
> local upstream also.

That's because the cached response already contains the header in 
it.

-- 
Maxim Dounin
http://nginx.org/


More information about the nginx mailing list