<div dir="ltr">On Thu, May 9, 2013 at 10:47 PM, John <span dir="ltr"><<a href="mailto:spam@onlineconcepts.com" target="_blank">spam@onlineconcepts.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Do I need to place this code in both the vcl_fetch and vcl_recv? I've<br>
currently got it in both places, but I do not want to duplicate code<br>
unless it's required (or a best practice).<br>
<br></blockquote><div><br></div><div style>You do two totally different things in recv and fetch. In recv you can modify the req object, changing the _request_. In fetch you modify beresp, the backed response. Cookie is a request header, so change it in recv. If you where to alter Set-Cookie OTOH, you would do so in fetch.</div>
<div style><br></div><div style>I would recommend to spend some time on the Varnish Book og the tutorial "Using Varnish". Or, if you are in NYC on the User Group meetup around the end of May there will also be a training session. </div>
</div>-- <br><div dir="ltr"><div style="font-size:12.727272033691406px;margin:5px 15px 0px 0px;padding-bottom:5px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)"><table border="0" cellpadding="0" cellspacing="0" style="text-align:start;font-size:12px;line-height:1.5em;font-family:'Helvetica Neue',Arial,sans-serif;color:rgb(102,102,102);width:550px;border-top-width:1px;border-top-style:solid;border-top-color:rgb(238,238,238);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(238,238,238);margin-top:20px;padding-top:5px;padding-bottom:5px">
<tbody><tr><td width="100" style="font-family:arial,sans-serif;margin:0px"><a href="http://www.varnish-software.com/" style="color:rgb(17,85,204)" target="_blank"><img src="http://www.varnish-software.com/static/media/logo-email.png" style="float:left;margin-left:10px"></a></td>
<td style="font-family:arial,sans-serif;margin:0px"><b style="font-size:14px;color:rgb(34,34,34)">Per Buer</b><br>´Varnish Software<br>Phone: +47 958 39 117 | Skype: per.buer<br><span style="font-weight:bold">We Make Websites Fly!<br>
<br></span></td></tr></tbody></table><div></div></div><div style="font-size:12.727272033691406px;margin:15px 0px;clear:both;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)"></div></div>
</div></div>