<div dir="ltr"><div><div><div><div><div><div><div><div>Hello all, I have inherited a varnish server. And I am a little confused about a few lines in that config.<br></div><br></div>It has the following in vcl_recv<br><br>    # Don't cache if there are request cookies<br>    if (req.http.Cookie) {<br>        set req.http.X-Debug-Varnish-Nocache-Recv = "Got request cookie (" + req.http.Cookie + ")";<br><br>        return (pass);<br>    }<br><br>    if (req.url ~ "\.(png|gif|jpg|jpeg|ico|swf|css|js|pdf|ico|js|ogg|mp4)$") {<br>        unset req.http.cookie;<br>    }<br>    if (req.url ~ "^/(includes|images|templates)") {<br>        unset req.http.cookie;<br>    }<br><br></div>So the first if block tells request with req.http.Cookie to pass to the backend.<br></div>The second tells if the requested url ends with .png|gif|jpg|jpeg|ico|swf|css|js|pdf|ico|js|ogg|mp4 and so on to unset the cookie.<br></div>But will these rules be executed or is the request already passed to the backend?<br><br></div>Thanks for your time<br></div>regards<br></div>Neuteboom<br><div><div><div><div><div><div><br><br><br><br><br><br><br><br><br><br><br><br><br></div></div></div></div></div></div></div>