<div dir="ltr">Hi Igor,<div><br></div><div>I need to use this with </div><div><br></div><div>##################</div><div><div>srcache_fetch_skip $skip_cache;</div><div>srcache_store_skip $skip_cache;</div></div><div>##################</div><div><br></div><div>As per srcache docs the value must be 0 for not skipping and anything other than 0 will be considered for skipping</div><div><br></div><div>Will combining the variables work here too?</div><div><br></div><div>Thanks,</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 9, 2017 at 1:39 PM, Igor A. Ippolitov <span dir="ltr"><<a href="mailto:iippolitov@nginx.com" target="_blank">iippolitov@nginx.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div class="m_7495882030263227213moz-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.<div><div class="h5"><br>
<br>
On 09.03.2017 10:01, Anoop Alias wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div class="h5">
<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>##############################<wbr>#</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$<wbr>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="m_7495882030263227213gmail_signature">
<div dir="ltr">
<div><b>Anoop P Alias</b>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="m_7495882030263227213mimeAttachmentHeader"></fieldset>
<br>
</div></div><pre>______________________________<wbr>_________________
nginx mailing list
<a class="m_7495882030263227213moz-txt-link-abbreviated" href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a>
<a class="m_7495882030263227213moz-txt-link-freetext" href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/<wbr>mailman/listinfo/nginx</a></pre>
</blockquote>
<p><br>
</p>
</div>
<br>______________________________<wbr>_________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/<wbr>mailman/listinfo/nginx</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><b>Anoop P Alias</b> <div><br></div></div></div></div>
</div>