Re: combining map

2017-03-09 Thread Ruslan Ermilov
On Thu, Mar 09, 2017 at 02:05:20PM +0530, Anoop Alias wrote: > Hi Igor, > > I need to use this with > > ## > srcache_fetch_skip $skip_cache; > srcache_store_skip $skip_cache; > ## > > As per srcache docs the value must be 0 for not skipping and anything other > th

Re: combining map

2017-03-09 Thread Igor A. Ippolitov
No, it won't. You can try something like map $request_method $requestnocache { default ""; POSTwhatever; } map $requestnocache$query_string$cookie__mcnc $skip_cache { default 0; ~.1; } So basically, "don't skip by default, but skip, if there are any letters" You can test

Re: combining map

2017-03-09 Thread Anoop Alias
Hi Igor, I need to use this with ## srcache_fetch_skip $skip_cache; srcache_store_skip $skip_cache; ## As per srcache docs the value must be 0 for not skipping and anything other than 0 will be considered for skipping Will combining the variables work here too?

Re: combining map

2017-03-09 Thread Igor A. Ippolitov
If you are going to use it inside proxy_no_cache directive, you can combine proxy_cache_method (POST is not included by default) and 'proxy_no_cache $query_string$cookie__mcnc' The latter will not cache the request until there is query string or a cookie with a value set. So basically, it looks

combining map

2017-03-08 Thread Anoop Alias
Hi, I have 3 maps defined map $request_method $requestnocache { default 0; POST1; } map $query_string $querystringnc { default 1; ""0; } map $http_cookie $mccookienocache { default 0; _mcnc