<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">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' <br>
The latter will not cache the request until there is query string
or a cookie with a value set.<br>
So basically, it looks like you can avoid using maps in this case.<br>
<br>
On 09.03.2017 10:01, Anoop Alias wrote:<br>
</div>
<blockquote
cite="mid:CAO6TEX2smoDEhE8dvO03xY7nA5uvBmzRm9t34hj_Y86iHaB3Mg@mail.gmail.com"
type="cite">
<div dir="ltr">Hi,
<div><br>
</div>
<div>I have 3 maps defined</div>
<div>############################</div>
<div>
<div>map $request_method $requestnocache {</div>
<div> default 0;</div>
<div> POST 1; </div>
<div>}</div>
<div><br>
</div>
<div>map $query_string $querystringnc {</div>
<div> default 1;</div>
<div> "" 0;</div>
<div>}</div>
<div><br>
</div>
<div>map $http_cookie $mccookienocache {</div>
<div> default 0;</div>
<div> _mcnc 1;</div>
<div> }</div>
<div>###############################</div>
<div><br>
</div>
<div>I need to create a single variable that is 1 if either of
the 3 above is 1 and 0 if all are 0. Will the following be
enough</div>
<div><br>
</div>
<div>map "$requestnocache$querystringnc$mccookienocache" {</div>
<div> default 0;</div>
<div> ~1 1;</div>
<div>}</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks,</div>
-- <br>
<div class="gmail_signature">
<div dir="ltr">
<div><b>Anoop P Alias</b>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
nginx mailing list
<a class="moz-txt-link-abbreviated" href="mailto:nginx@nginx.org">nginx@nginx.org</a>
<a class="moz-txt-link-freetext" href="http://mailman.nginx.org/mailman/listinfo/nginx">http://mailman.nginx.org/mailman/listinfo/nginx</a></pre>
</blockquote>
<p><br>
</p>
</body>
</html>