Welcome! Log In Create A New Profile

Advanced

Caching upstream X-Accel-Redirect responses

Posted by drhevans 
Caching upstream X-Accel-Redirect responses
January 06, 2012 11:29AM
I am running nginx as a proxy to an application server and using the proxy_cache features. Caching works fine in "normal" cases, but if my application returns an X-Accel-Redirect header then the response is not cached. Is there any way of caching such responses? Obviously I could stick Varnish or something like that in between nginx and my application, but it would be nice to avoid adding another element to the stack.

I asked this question on ServerFault but didn't get a definitive response: http://serverfault.com/questions/343463/

I'd be very grateful for any insights.

Thanks,

Dave
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 145
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready