<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi,</div><div class=""><br class=""></div><div class="">Why <span style="font-family: monospace, monospace; color: rgb(36, 41, 46); white-space: pre;" class="">unset req.http.cookie; ?</span></div><div class=""><br class=""></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 class="">Or I misunderstood?<div class=""><br class=""><div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><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; -webkit-text-stroke-width: 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; -webkit-text-stroke-width: 0px;">Danila</div></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On 30 May 2017, at 10:38, Guillaume Quintard <<a href="mailto:guillaume@varnish-software.com" class="">guillaume@varnish-software.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi,<div class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class="">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 class=""><font face="monospace, monospace" class=""><br class=""></font></div><div class=""><font face="monospace, monospace" class="">sub vcl_recv {</font></div><div class=""><font face="monospace, monospace" class=""> <span style="color:rgb(36,41,46);font-size:12px;white-space:pre" class="">cookie.parse(req.http.cookie);</span></font></div><div class=""><span style="color:rgb(36,41,46);font-size:12px;white-space:pre" class=""><font face="monospace, monospace" class=""> set req.http.cookie1 = cookie.get("COOKIE1");</font></span></div><div class=""><font face="monospace, monospace" class=""><span style="color:rgb(36,41,46);font-size:12px;white-space:pre" class=""> set req.http.cookie2 = cookie.get("COOKIE2");</span><span style="color:rgb(36,41,46);font-size:12px;white-space:pre" class=""><br class=""></span></font></div><div class=""><span style="color:rgb(36,41,46);font-size:12px;white-space:pre" class=""><font face="monospace, monospace" class=""> unset req.http.cookie;</font></span></div><div class=""><font face="monospace, monospace" class="">}</font></div><div class=""><font face="monospace, monospace" class=""><br class=""></font></div><div class=""><font face="monospace, monospace" class="">sub vcl_hash {</font></div><div class=""><font face="monospace, monospace" class=""> hash_data(<span style="color:rgb(36,41,46);font-size:12px;white-space:pre" class="">req.http.cookie1</span>);</font></div><div class=""><font face="monospace, monospace" class=""> hash_data(<span style="color:rgb(36,41,46);font-size:12px;white-space:pre" class="">req.http.cookie2</span>);</font></div><div class=""><font face="monospace, monospace" class="">}</font></div></div><div class="gmail_extra"><br clear="all" class=""><div class=""><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class="">-- <br class=""></div>Guillaume Quintard<br class=""></div></div></div>
<br class=""><div class="gmail_quote">On Tue, May 30, 2017 at 6:40 AM, sreeranj s <span dir="ltr" class=""><<a href="mailto:sreeranj4droid@gmail.com" target="_blank" class="">sreeranj4droid@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">Let me reiterate the question.<div class=""><br class=""></div><div class=""><div style="font-size:12.8px" class="">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" class=""><br class=""></div><div style="font-size:12.8px" class="">Please advise on any issues on this approach.</div><div style="font-size:12.8px" class=""><br class=""></div><div style="font-size:12.8px" class="">******************************<wbr class="">*********</div><div style="font-size:12.8px" class=""><span class="m_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" class=""> </span><span class="m_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" class=""> </span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-p" style="font-size:12.8px;white-space:pre-wrap">{</span><br class=""></div><div style="font-size:12.8px" class=""><span class=""><pre style="white-space:pre-wrap" class=""> <span class="m_643469585224098956gmail-m_1639037540278786416gmail-k">if</span> <span class="m_643469585224098956gmail-m_1639037540278786416gmail-p">(</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">req</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">http</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">Cookie</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-p">)</span> <span class="m_643469585224098956gmail-m_1639037540278786416gmail-p">{</span>
<span class="m_643469585224098956gmail-m_1639037540278786416gmail-nb">set</span> <span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">req</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">http</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">Cookie</span> <span class="m_643469585224098956gmail-m_1639037540278786416gmail-o">=</span> <span class="m_643469585224098956gmail-m_1639037540278786416gmail-s2">";"</span> <span class="m_643469585224098956gmail-m_1639037540278786416gmail-o">+</span> <span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">req</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">http</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">Cookie</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-p">;</span>
<span class="m_643469585224098956gmail-m_1639037540278786416gmail-nb">set</span> <span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">req</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">http</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">Cookie</span> <span class="m_643469585224098956gmail-m_1639037540278786416gmail-o">=</span> <span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">regsuball</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-p">(</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">req</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">http</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">Cookie</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-p">,</span> <span class="m_643469585224098956gmail-m_1639037540278786416gmail-s2">"; +"</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-p">,</span> <span class="m_643469585224098956gmail-m_1639037540278786416gmail-s2">";"</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-p">);</span>
<span class="m_643469585224098956gmail-m_1639037540278786416gmail-nb">set</span> <span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">req</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">http</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">Cookie</span> <span class="m_643469585224098956gmail-m_1639037540278786416gmail-o">=</span> <span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">regsuball</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-p">(</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">req</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">http</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">Cookie</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-p">,</span> <span class="m_643469585224098956gmail-m_1639037540278786416gmail-s2">";(COOKIE1|COOKIE2)="</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-p">,</span> <span class="m_643469585224098956gmail-m_1639037540278786416gmail-s2">"; </span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-se">\1</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-s2">="</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-p">);</span>
<span class="m_643469585224098956gmail-m_1639037540278786416gmail-nb">set</span> <span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">req</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">http</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">Cookie</span> <span class="m_643469585224098956gmail-m_1639037540278786416gmail-o">=</span> <span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">regsuball</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-p">(</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">req</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">http</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">Cookie</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-p">,</span> <span class="m_643469585224098956gmail-m_1639037540278786416gmail-s2">";[^ ][^;]*"</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-p">,</span> <span class="m_643469585224098956gmail-m_1639037540278786416gmail-s2">""</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-p">);</span>
<span class="m_643469585224098956gmail-m_1639037540278786416gmail-nb">set</span> <span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">req</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">http</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">Cookie</span> <span class="m_643469585224098956gmail-m_1639037540278786416gmail-o">=</span> <span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">regsuball</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-p">(</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">req</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">http</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">Cookie</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-p">,</span> <span class="m_643469585224098956gmail-m_1639037540278786416gmail-s2">"^[; ]+|[; ]+$"</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-p">,</span> <span class="m_643469585224098956gmail-m_1639037540278786416gmail-s2">""</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-p">);</span>
<span class="m_643469585224098956gmail-m_1639037540278786416gmail-k">if</span> <span class="m_643469585224098956gmail-m_1639037540278786416gmail-p">(</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">req</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">http</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">Cookie</span> <span class="m_643469585224098956gmail-m_1639037540278786416gmail-o">==</span> <span class="m_643469585224098956gmail-m_1639037540278786416gmail-s2">""</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-p">)</span> <span class="m_643469585224098956gmail-m_1639037540278786416gmail-p">{</span>
<span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">unset</span> <span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">req</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">http</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-n">Cookie</span><span class="m_643469585224098956gmail-m_1639037540278786416gmail-p">;</span></pre></span><pre style="white-space:pre-wrap" class=""> return(pass)
<span class="m_643469585224098956gmail-m_1639037540278786416gmail-p">}</span>
return(hash)</pre><pre style="white-space:pre-wrap" class=""><span class="m_643469585224098956gmail-m_1639037540278786416gmail-p"> }</span>
<span class="m_643469585224098956gmail-m_1639037540278786416gmail-p">}</span></pre><pre style="white-space:pre-wrap" class=""><span class="m_643469585224098956gmail-m_1639037540278786416gmail-p"><span style="font-family:arial,sans-serif;font-size:12.8px;white-space:normal" class="">******************************<wbr class="">*********</span><br class=""></span></pre><pre style="white-space:pre-wrap" class=""><span class="m_643469585224098956gmail-m_1639037540278786416gmail-p"><br class="m_643469585224098956gmail-m_1639037540278786416gmail-Apple-interchange-newline"></span></pre></div><div class=""><br class=""></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br class=""><div class="gmail_quote">On Mon, May 29, 2017 at 9:45 PM, sreeranj s <span dir="ltr" class=""><<a href="mailto:sreeranj4droid@gmail.com" target="_blank" class="">sreeranj4droid@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">Hi,<div class=""><br class=""></div><div class="">As per the link <a href="https://varnish-cache.org/docs/4.0/users-guide/increasing-your-hitrate.html" target="_blank" class="">https://varnish-cache.org/docs<wbr class="">/4.0/users-guide/increasing-<wbr class="">your-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 class=""></div><div class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class="">2) If the approach is ok, please advise on any issues are related to this approach.</div><div class=""><br class=""></div><div class="">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 class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">==============================<wbr class="">===</div><div class=""><pre class=""><span class="m_643469585224098956m_1639037540278786416gmail-n">sub</span> <span class="m_643469585224098956m_1639037540278786416gmail-n">vcl_recv</span> <span class="m_643469585224098956m_1639037540278786416gmail-p">{</span>
<span class="m_643469585224098956m_1639037540278786416gmail-k">if</span> <span class="m_643469585224098956m_1639037540278786416gmail-p">(</span><span class="m_643469585224098956m_1639037540278786416gmail-n">req</span><span class="m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956m_1639037540278786416gmail-n">http</span><span class="m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956m_1639037540278786416gmail-n">Cookie</span><span class="m_643469585224098956m_1639037540278786416gmail-p">)</span> <span class="m_643469585224098956m_1639037540278786416gmail-p">{</span>
<span class="m_643469585224098956m_1639037540278786416gmail-nb">set</span> <span class="m_643469585224098956m_1639037540278786416gmail-n">req</span><span class="m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956m_1639037540278786416gmail-n">http</span><span class="m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956m_1639037540278786416gmail-n">Cookie</span> <span class="m_643469585224098956m_1639037540278786416gmail-o">=</span> <span class="m_643469585224098956m_1639037540278786416gmail-s2">";"</span> <span class="m_643469585224098956m_1639037540278786416gmail-o">+</span> <span class="m_643469585224098956m_1639037540278786416gmail-n">req</span><span class="m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956m_1639037540278786416gmail-n">http</span><span class="m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956m_1639037540278786416gmail-n">Cookie</span><span class="m_643469585224098956m_1639037540278786416gmail-p">;</span>
<span class="m_643469585224098956m_1639037540278786416gmail-nb">set</span> <span class="m_643469585224098956m_1639037540278786416gmail-n">req</span><span class="m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956m_1639037540278786416gmail-n">http</span><span class="m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956m_1639037540278786416gmail-n">Cookie</span> <span class="m_643469585224098956m_1639037540278786416gmail-o">=</span> <span class="m_643469585224098956m_1639037540278786416gmail-n">regsuball</span><span class="m_643469585224098956m_1639037540278786416gmail-p">(</span><span class="m_643469585224098956m_1639037540278786416gmail-n">req</span><span class="m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956m_1639037540278786416gmail-n">http</span><span class="m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956m_1639037540278786416gmail-n">Cookie</span><span class="m_643469585224098956m_1639037540278786416gmail-p">,</span> <span class="m_643469585224098956m_1639037540278786416gmail-s2">"; +"</span><span class="m_643469585224098956m_1639037540278786416gmail-p">,</span> <span class="m_643469585224098956m_1639037540278786416gmail-s2">";"</span><span class="m_643469585224098956m_1639037540278786416gmail-p">);</span>
<span class="m_643469585224098956m_1639037540278786416gmail-nb">set</span> <span class="m_643469585224098956m_1639037540278786416gmail-n">req</span><span class="m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956m_1639037540278786416gmail-n">http</span><span class="m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956m_1639037540278786416gmail-n">Cookie</span> <span class="m_643469585224098956m_1639037540278786416gmail-o">=</span> <span class="m_643469585224098956m_1639037540278786416gmail-n">regsuball</span><span class="m_643469585224098956m_1639037540278786416gmail-p">(</span><span class="m_643469585224098956m_1639037540278786416gmail-n">req</span><span class="m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956m_1639037540278786416gmail-n">http</span><span class="m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956m_1639037540278786416gmail-n">Cookie</span><span class="m_643469585224098956m_1639037540278786416gmail-p">,</span> <span class="m_643469585224098956m_1639037540278786416gmail-s2">";(COOKIE1|COOKIE2)="</span><span class="m_643469585224098956m_1639037540278786416gmail-p">,</span> <span class="m_643469585224098956m_1639037540278786416gmail-s2">"; </span><span class="m_643469585224098956m_1639037540278786416gmail-se">\1</span><span class="m_643469585224098956m_1639037540278786416gmail-s2">="</span><span class="m_643469585224098956m_1639037540278786416gmail-p">);</span>
<span class="m_643469585224098956m_1639037540278786416gmail-nb">set</span> <span class="m_643469585224098956m_1639037540278786416gmail-n">req</span><span class="m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956m_1639037540278786416gmail-n">http</span><span class="m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956m_1639037540278786416gmail-n">Cookie</span> <span class="m_643469585224098956m_1639037540278786416gmail-o">=</span> <span class="m_643469585224098956m_1639037540278786416gmail-n">regsuball</span><span class="m_643469585224098956m_1639037540278786416gmail-p">(</span><span class="m_643469585224098956m_1639037540278786416gmail-n">req</span><span class="m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956m_1639037540278786416gmail-n">http</span><span class="m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956m_1639037540278786416gmail-n">Cookie</span><span class="m_643469585224098956m_1639037540278786416gmail-p">,</span> <span class="m_643469585224098956m_1639037540278786416gmail-s2">";[^ ][^;]*"</span><span class="m_643469585224098956m_1639037540278786416gmail-p">,</span> <span class="m_643469585224098956m_1639037540278786416gmail-s2">""</span><span class="m_643469585224098956m_1639037540278786416gmail-p">);</span>
<span class="m_643469585224098956m_1639037540278786416gmail-nb">set</span> <span class="m_643469585224098956m_1639037540278786416gmail-n">req</span><span class="m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956m_1639037540278786416gmail-n">http</span><span class="m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956m_1639037540278786416gmail-n">Cookie</span> <span class="m_643469585224098956m_1639037540278786416gmail-o">=</span> <span class="m_643469585224098956m_1639037540278786416gmail-n">regsuball</span><span class="m_643469585224098956m_1639037540278786416gmail-p">(</span><span class="m_643469585224098956m_1639037540278786416gmail-n">req</span><span class="m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956m_1639037540278786416gmail-n">http</span><span class="m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956m_1639037540278786416gmail-n">Cookie</span><span class="m_643469585224098956m_1639037540278786416gmail-p">,</span> <span class="m_643469585224098956m_1639037540278786416gmail-s2">"^[; ]+|[; ]+$"</span><span class="m_643469585224098956m_1639037540278786416gmail-p">,</span> <span class="m_643469585224098956m_1639037540278786416gmail-s2">""</span><span class="m_643469585224098956m_1639037540278786416gmail-p">);</span>
<span class="m_643469585224098956m_1639037540278786416gmail-k">if</span> <span class="m_643469585224098956m_1639037540278786416gmail-p">(</span><span class="m_643469585224098956m_1639037540278786416gmail-n">req</span><span class="m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956m_1639037540278786416gmail-n">http</span><span class="m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956m_1639037540278786416gmail-n">Cookie</span> <span class="m_643469585224098956m_1639037540278786416gmail-o">==</span> <span class="m_643469585224098956m_1639037540278786416gmail-s2">""</span><span class="m_643469585224098956m_1639037540278786416gmail-p">)</span> <span class="m_643469585224098956m_1639037540278786416gmail-p">{</span>
<span class="m_643469585224098956m_1639037540278786416gmail-n">unset</span> <span class="m_643469585224098956m_1639037540278786416gmail-n">req</span><span class="m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956m_1639037540278786416gmail-n">http</span><span class="m_643469585224098956m_1639037540278786416gmail-o">.</span><span class="m_643469585224098956m_1639037540278786416gmail-n">Cookie</span><span class="m_643469585224098956m_1639037540278786416gmail-p">;</span>
<span class="m_643469585224098956m_1639037540278786416gmail-p">}</span>
<span class="m_643469585224098956m_1639037540278786416gmail-p">}</span>
<span class="m_643469585224098956m_1639037540278786416gmail-p">}</span></pre><pre class=""><span class="m_643469585224098956m_1639037540278786416gmail-p"><br class="m_643469585224098956m_1639037540278786416gmail-Apple-interchange-newline"><span style="font-family:arial,sans-serif;white-space:normal" class="">==============================<wbr class="">===</span><br class=""></span></pre></div></div>
</blockquote></div><br class=""></div>
</div></div><br class="">______________________________<wbr class="">_________________<br class="">
varnish-misc mailing list<br class="">
<a href="mailto:varnish-misc@varnish-cache.org" class="">varnish-misc@varnish-cache.org</a><br class="">
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noreferrer" target="_blank" class="">https://www.varnish-cache.org/<wbr class="">lists/mailman/listinfo/<wbr class="">varnish-misc</a><br class=""></blockquote></div><br class=""></div>
_______________________________________________<br class="">varnish-misc mailing list<br class=""><a href="mailto:varnish-misc@varnish-cache.org" class="">varnish-misc@varnish-cache.org</a><br class="">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</div></blockquote></div><br class=""></div></div></body></html>