proxy_cache and internal redirect

Maxim Dounin mdounin at mdounin.ru
Thu Feb 28 16:35:41 UTC 2013


Hello!

On Thu, Feb 28, 2013 at 03:50:19PM +0400, Nick wrote:

>  Hello.
> Can you please tell how to enable caching of responses with 'X-Accel-Redirect' headers.
> Nick.

You may do so by using

    proxy_ignore_headers X-Accel-Redirect;

This will prevent nginx from doing a redirect based on 
X-Accel-Redirect though.

See http://nginx.org/r/proxy_ignore_headers for details.

-- 
Maxim Dounin
http://nginx.org/en/donation.html



More information about the nginx mailing list