<div dir="ltr">Hello Danila,<div><br></div><div>Since hashing only the url, I assumed the cookie was of no interest to the backend, so I'm nuking it to benefit from builtin.vcl, ie. I don't have to return(hash).</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>-- <br></div>Guillaume Quintard<br></div></div></div>
<br><div class="gmail_quote">On Tue, May 30, 2017 at 1:06 PM, Danila Vershinin <span dir="ltr"><<a href="mailto:ciapnz@gmail.com" target="_blank">ciapnz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Hi,</div><div><br></div><div>Why <span style="font-family:monospace,monospace;color:rgb(36,41,46);white-space:pre-wrap">unset req.http.cookie; ?</span></div><div><br></div>Wouldn’t this require applications to read $_SERVER[‘HTTP_COOKIE1’] and $_SERVER[‘HTTP_COOKIE2’]. as opposed to $_COOKIE. (I can see this might break PHP sessions working out of the box). <div>Or I misunderstood?<div><br><div>
<div style="word-wrap:break-word"><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Best Regards,</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Danila</div></div>
</div><div><div class="h5">
<br><div><blockquote type="cite"><div>On 30 May 2017, at 10:38, Guillaume Quintard <<a href="mailto:guillaume@varnish-software.com" target="_blank">guillaume@varnish-software.<wbr>com</a>> wrote:</div><br class="m_1447137253226763342Apple-interchange-newline"><div><div dir="ltr">Hi,<div><br></div><div>As you said, the hashing is only based on the URL (and host/ip), that means that Varnish can cache "/account.html" with cookie "user=alice" and deliver it to the request "/account.html" with cookie "user=bob", is that an issue?</div><div><br></div><div>I highly recommend using vmod cookie to avoid the regex madness. I'd also extract the cookies into their own headers and hash them inconditionally, giving something like:</div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">sub vcl_recv {</font></div><div><font face="monospace, monospace"> <span style="color:rgb(36,41,46);font-size:12px;white-space:pre-wrap">cookie.parse(req.http.<wbr>cookie);</span></font></div><div><span style="color:rgb(36,41,46);font-size:12px;white-space:pre-wrap"><font face="monospace, monospace"> set req.http.cookie1 = cookie.get("COOKIE1");</font></span></div><div><font face="monospace, monospace"><span style="color:rgb(36,41,46);font-size:12px;white-space:pre-wrap"> set req.http.cookie2 = cookie.get("COOKIE2");</span><span style="color:rgb(36,41,46);font-size:12px;white-space:pre-wrap"><br></span></font></div><div><span style="color:rgb(36,41,46);font-size:12px;white-space:pre-wrap"><font face="monospace, monospace"> unset req.http.cookie;</font></span></div><div><font face="monospace, monospace">}</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">sub vcl_hash {</font></div><div><font face="monospace, monospace"> hash_data(<span style="color:rgb(36,41,46);font-size:12px;white-space:pre-wrap">req.http.cookie1</span>);</font></div><div><font face="monospace, monospace"> hash_data(<span style="color:rgb(36,41,46);font-size:12px;white-space:pre-wrap">req.http.cookie2</span>);</font></div><div><font face="monospace, monospace">}</font></div></div><div class="gmail_extra"><br clear="all"><div><div class="m_1447137253226763342gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>-- <br></div>Guillaume Quintard<br></div></div></div>
<br><div class="gmail_quote">On Tue, May 30, 2017 at 6:40 AM, sreeranj s <span dir="ltr"><<a href="mailto:sreeranj4droid@gmail.com" target="_blank">sreeranj4droid@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Let me reiterate the question.<div><br></div><div><div style="font-size:12.8px">By default varnish will not cache if there is cookie present in request or a set-cookie value is there in server response. In the following case we have retained COOKIE1 and |COOKIE2, but can varnish still caches the responses(I have the unset cookie from backend responses), by returning hash in vcl recv. No changes in vcl_hash is made, so caching is based on req_url.</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Please advise on any issues on this approach.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">******************************<wbr>*********</div><div style="font-size:12.8px"><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n" style="font-size:12.8px;white-space:pre-wrap">sub</span><span style="font-size:12.8px;white-space:pre-wrap"> </span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n" style="font-size:12.8px;white-space:pre-wrap">vcl_recv</span><span style="font-size:12.8px;white-space:pre-wrap"> </span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-p" style="font-size:12.8px;white-space:pre-wrap">{</span><br></div><div style="font-size:12.8px"><span><pre style="white-space:pre-wrap"> <span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-k">if</span> <span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-p">(</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">req</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">http</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">Cookie</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-p">)</span> <span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-p">{</span>
<span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-nb">set</span> <span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">req</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">http</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">Cookie</span> <span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-o">=</span> <span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-s2">";"</span> <span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-o">+</span> <span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">req</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">http</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">Cookie</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-p">;</span>
<span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-nb">set</span> <span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">req</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">http</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">Cookie</span> <span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-o">=</span> <span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">regsuball</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-p">(</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">req</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">http</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">Cookie</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-p">,</span> <span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-s2">"; +"</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-p">,</span> <span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-s2">";"</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-p">);</span>
<span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-nb">set</span> <span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">req</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">http</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">Cookie</span> <span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-o">=</span> <span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">regsuball</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-p">(</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">req</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">http</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">Cookie</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-p">,</span> <span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-s2">";(COOKIE1|COOKIE2)="</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-p">,</span> <span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-s2">"; </span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-se">\1</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-s2">="</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-p">);</span>
<span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-nb">set</span> <span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">req</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">http</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">Cookie</span> <span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-o">=</span> <span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">regsuball</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-p">(</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">req</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">http</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">Cookie</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-p">,</span> <span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-s2">";[^ ][^;]*"</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-p">,</span> <span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-s2">""</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-p">);</span>
<span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-nb">set</span> <span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">req</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">http</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">Cookie</span> <span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-o">=</span> <span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">regsuball</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-p">(</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">req</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">http</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">Cookie</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-p">,</span> <span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-s2">"^[; ]+|[; ]+$"</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-p">,</span> <span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-s2">""</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-p">);</span>
<span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-k">if</span> <span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-p">(</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">req</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">http</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">Cookie</span> <span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-o">==</span> <span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-s2">""</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-p">)</span> <span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-p">{</span>
<span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">unset</span> <span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">req</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">http</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-n">Cookie</span><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-p">;</span></pre></span><pre style="white-space:pre-wrap"> return(pass)
<span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-p">}</span>
return(hash)</pre><pre style="white-space:pre-wrap"><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-p"> }</span>
<span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-p">}</span></pre><pre style="white-space:pre-wrap"><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-p"><span style="font-family:arial,sans-serif;font-size:12.8px;white-space:normal">******************************<wbr>*********</span><br></span></pre><pre style="white-space:pre-wrap"><span class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-p"><br class="m_1447137253226763342m_643469585224098956gmail-m_1639037540278786416gmail-Apple-interchange-newline"></span></pre></div><div><br></div></div><div class="m_1447137253226763342HOEnZb"><div class="m_1447137253226763342h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 29, 2017 at 9:45 PM, sreeranj s <span dir="ltr"><<a href="mailto:sreeranj4droid@gmail.com" target="_blank">sreeranj4droid@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>As per the link <a href="https://varnish-cache.org/docs/4.0/users-guide/increasing-your-hitrate.html" target="_blank">https://varnish-cache.org/docs<wbr>/4.0/users-guide/increasing-yo<wbr>ur-hitrate.html</a>, following code will help us to retain COOKIE1 and |COOKIE2, but strip other cookies. So COOKIE1 and |COOKIE2 is send to backend. I have the following questions.<br></div><div><br></div><div>1) By default varnish will not cache if there is cookie present in request or a set-cookie value is there in server response. In the following case we have retained COOKIE1 and |COOKIE2, but I still have varnish caches the responses(I have the unset cookie from backend responses). Could you please let me know the reason. </div><div><br></div><div>2) If the approach is ok, please advise on any issues are related to this approach.</div><div><br></div><div>3) I am not adding any specific value in hash block, so requests are cached only based on req-url or IP. hope that is right.<br></div><div><br></div><div><br></div><div>==============================<wbr>===</div><div><pre><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">sub</span> <span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">vcl_recv</span> <span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-p">{</span>
<span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-k">if</span> <span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-p">(</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">req</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">http</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">Cookie</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-p">)</span> <span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-p">{</span>
<span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-nb">set</span> <span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">req</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">http</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">Cookie</span> <span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-o">=</span> <span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-s2">";"</span> <span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-o">+</span> <span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">req</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">http</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">Cookie</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-p">;</span>
<span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-nb">set</span> <span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">req</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">http</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">Cookie</span> <span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-o">=</span> <span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">regsuball</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-p">(</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">req</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">http</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">Cookie</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-p">,</span> <span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-s2">"; +"</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-p">,</span> <span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-s2">";"</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-p">);</span>
<span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-nb">set</span> <span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">req</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">http</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">Cookie</span> <span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-o">=</span> <span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">regsuball</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-p">(</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">req</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">http</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">Cookie</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-p">,</span> <span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-s2">";(COOKIE1|COOKIE2)="</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-p">,</span> <span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-s2">"; </span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-se">\1</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-s2">="</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-p">);</span>
<span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-nb">set</span> <span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">req</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">http</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">Cookie</span> <span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-o">=</span> <span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">regsuball</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-p">(</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">req</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">http</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">Cookie</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-p">,</span> <span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-s2">";[^ ][^;]*"</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-p">,</span> <span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-s2">""</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-p">);</span>
<span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-nb">set</span> <span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">req</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">http</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">Cookie</span> <span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-o">=</span> <span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">regsuball</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-p">(</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">req</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">http</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">Cookie</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-p">,</span> <span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-s2">"^[; ]+|[; ]+$"</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-p">,</span> <span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-s2">""</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-p">);</span>
<span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-k">if</span> <span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-p">(</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">req</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">http</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">Cookie</span> <span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-o">==</span> <span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-s2">""</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-p">)</span> <span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-p">{</span>
<span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">unset</span> <span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">req</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">http</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-n">Cookie</span><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-p">;</span>
<span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-p">}</span>
<span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-p">}</span>
<span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-p">}</span></pre><pre><span class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-p"><br class="m_1447137253226763342m_643469585224098956m_1639037540278786416gmail-Apple-interchange-newline"><span style="font-family:arial,sans-serif;white-space:normal">==============================<wbr>===</span><br></span></pre></div></div>
</blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noreferrer" target="_blank">https://www.varnish-cache.org/<wbr>lists/mailman/listinfo/varnish<wbr>-misc</a><br></blockquote></div><br></div>
______________________________<wbr>_________________<br>varnish-misc mailing list<br><a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a><br><a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/<wbr>lists/mailman/listinfo/<wbr>varnish-misc</a></div></blockquote></div><br></div></div></div></div></div></blockquote></div><br></div>