proxy_cache and internal redirect

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


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 for details.

Maxim Dounin

More information about the nginx mailing list