How to send proxy cache status to backend server?

Maxim Dounin mdounin at
Wed Mar 19 09:39:37 UTC 2014


On Wed, Mar 19, 2014 at 10:19:59AM +0530, Makailol Charls wrote:

> Thanks, It is working. I was checking wrong variable name.
> I have noticed that when catch is being "REVALIDATED", backend receives
> "EXPIRED" and upstream receives "REVALIDATED". Is this correct ?

Yes, it's correct.  The "REVALIDATED" status is only known after 
nginx recieves 304 from a backend.  Before this happens, the only 
thing known is that response in the cache no longer valid, that 
is, status is "EXPIRED".

Maxim Dounin

More information about the nginx mailing list