Welcome! Log In Create A New Profile

Advanced

Re: proxy_cache and internal redirect

Maxim Dounin
March 01, 2013 08:22AM
Hello!

On Fri, Mar 01, 2013 at 11:06:54AM +0400, Nicholas Kostirya wrote:

> But, I want use both redirect and save response with
> 'X-Accel-Redirect' in cache to prevent multiple requests to
> backend.

You have to select just one, either X-Accel-Redirect handling or
cache. As a workaround you may try doing another proxy layer with
cache and X-Accel-Redirect ignored.

>
> NIck
>
> Четверг, 28 февраля 2013, 20:35 +04:00 от Maxim Dounin <mdounin@mdounin.ru>:
> >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
> >
> >_______________________________________________
> >nginx mailing list
> >nginx@nginx.org
> >http://mailman.nginx.org/mailman/listinfo/nginx
>

> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx


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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

proxy_cache and internal redirect

Nick February 28, 2013 06:52AM

Re: proxy_cache and internal redirect

Maxim Dounin February 28, 2013 11:36AM

Re[2]: proxy_cache and internal redirect

Nicholas Kostirya March 01, 2013 02:08AM

Re: proxy_cache and internal redirect

Maxim Dounin March 01, 2013 08:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 116
Record Number of Users: 6 on August 08, 2016
Record Number of Guests: 386 on August 02, 2016
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready