proxy_cache and internal redirect

Nicholas Kostirya nick_ik at mail.ru
Fri Mar 1 07:06:54 UTC 2013


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

NIck

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20130301/a2327942/attachment.html>


More information about the nginx mailing list