<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">No, it won't.<br>
      <br>
      You can try something like<br>
      <div><br>
        map $request_method $requestnocache {</div>
      <div>    default "";</div>
      <div>    POST    whatever; </div>
      <div>}<br>
        map $requestnocache$query_string$cookie__mcnc $skip_cache {<br>
            default 0;<br>
            ~.    1;<br>
        }<br>
      </div>
      <br>
      So basically, "don't skip by default, but skip, if there are any
      letters"<br>
      You can test this by extending your log format with variables
      used/produced by the map and comparing results to what you expect
      there to be.<br>
      <br>
      On 09.03.2017 11:35, Anoop Alias wrote:<br>
    </div>
    <blockquote
cite="mid:CAO6TEX0afBgfdoSVraGvjpLjyJJLCxhYnXaF_Ez840zZ4Fb4Eg@mail.gmail.com"
      type="cite">
      <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 moz-do-not-send="true"
              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 moz-do-not-send="true" class="m_7495882030263227213moz-txt-link-abbreviated" href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a>
<a moz-do-not-send="true" 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>

    </p>
  </div>


______________________________<wbr>_________________

nginx mailing list

<a moz-do-not-send="true" href="mailto:nginx@nginx.org">nginx@nginx.org</a>

<a moz-do-not-send="true" href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/<wbr>mailman/listinfo/nginx</a>
</blockquote></div>

<div>
</div>-- 
<div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><b>Anoop P Alias</b> <div>
</div></div></div></div>
</div>


<fieldset class="mimeAttachmentHeader"></fieldset>
<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>
</p></body></html>