Question about $upstream_cache_status

Maxim Dounin mdounin at
Tue Apr 25 16:25:02 UTC 2017


On Tue, Apr 25, 2017 at 06:01:11PM +0200, rainer at wrote:

> am I right that $upstream_cache_status primarily concerns nginx' own 
> upstreams like fastcgi, uwsgi etc?


> Or is there a possibility to display whether an upstream varnish has had 
> the page cached?

To obtain additional information from upstream servers you can use 
HTTP headers.  Headers as received from an upstream server are 
available as $upstream_http_* variables, see docs here:$upstream_http_

Maxim Dounin

More information about the nginx mailing list