Re: Map is not matching correctly against upstream custom header

2016-06-02 Thread Gabriel Arrais
Maxim Dounin wrote in post #1183769: > Hello! > > On Thu, Jun 02, 2016 at 07:51:06PM +0200, Gabriel Arrais wrote: > >> 1 0; >>proxy_cache_bypass $no_cache;^M >>} >> >> I've already tried the map with $sent_http_x_my_custom_header, >> $upstream_http_x_my_custom_header a

Re: Map is not matching correctly against upstream custom header

2016-06-02 Thread Maxim Dounin
Hello! On Thu, Jun 02, 2016 at 07:51:06PM +0200, Gabriel Arrais wrote: > Hi, I'm trying to configure my proxy cache settings based in a response > custom > header, using proxy_no_cache and proxy_cache_bypass directives. > > First question: is it possible at all? > Second question: If it is, why

Map is not matching correctly against upstream custom header

2016-06-02 Thread Gabriel Arrais
Hi, I'm trying to configure my proxy cache settings based in a response custom header, using proxy_no_cache and proxy_cache_bypass directives. First question: is it possible at all? Second question: If it is, why this map is always hitting the default value? map $sent_http_x_my_custom_header $