How to send proxy cache status to backend server?

Maxim Dounin mdounin at mdounin.ru
Fri Mar 14 15:41:42 UTC 2014


Hello!

On Fri, Mar 14, 2014 at 07:35:52PM +0530, Makailol Charls wrote:

> Hello,
> 
> I have been using proxy cache of Nginx. It provides response header to
> indicate cache status. Is there some way to forward the cache status (in
> case of miss, expired or revalidate ) to backend upstream server?

The proxy_set_header directive should work, see 
http://nginx.org/r/proxy_set_header.

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



More information about the nginx mailing list