proxy_cache seems not working with X-Accel-Redirect

bdesemb nginx-forum at
Thu Jan 12 12:54:20 UTC 2017

I made a diagram to be more specific. It's not a problem if the client ask
for /data and get an older version of the file. The invalidate option in
proxy_cache is enough for me.

Here is my diagram without cache:

Obviously, I don't want to reach the upstream server every time but only if
the file hasn't been reached after x minutes.

Posted at Nginx Forum:,241734,271962#msg-271962

More information about the nginx mailing list