<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div class="netInfoHeadersGroup netInfoResponseHeadersTitle "><span class=" ">I am new to Varnish and have read the documentation. My goal is to remove all cookies from static files. </span></div><div class="netInfoHeadersGroup netInfoResponseHeadersTitle "><span class=" "><br></span></div><div class="netInfoHeadersGroup netInfoResponseHeadersTitle ">My VCL is:</div><div class="netInfoHeadersGroup netInfoResponseHeadersTitle "><br></div><div class="netInfoHeadersGroup netInfoResponseHeadersTitle "><div class="netInfoHeadersGroup netInfoResponseHeadersTitle ">sub vcl_recv {</div><div class="netInfoHeadersGroup netInfoResponseHeadersTitle ">  if (req.url ~ "\.(png|gif|jpg|swf|css|js)$") {</div><div class="netInfoHeadersGroup netInfoResponseHeadersTitle ">    unset req.http.cookie;</div><div class="netInfoHeadersGroup netInfoResponseHeadersTitle ">  }</div><div class="netInfoHeadersGroup netInfoResponseHeadersTitle ">}</div></div><div class="netInfoHeadersGroup netInfoResponseHeadersTitle "><br></div><div class="netInfoHeadersGroup netInfoResponseHeadersTitle "><div class="netInfoHeadersGroup netInfoResponseHeadersTitle ">sub vcl_fetch {</div><div class="netInfoHeadersGroup netInfoResponseHeadersTitle ">  if (req.url ~ "\.(png|gif|jpg|swf|css|js)$") {</div><div class="netInfoHeadersGroup netInfoResponseHeadersTitle ">    unset beresp.http.set-cookie;</div><div class="netInfoHeadersGroup netInfoResponseHeadersTitle ">  }</div><div>}</div></div><div class="netInfoHeadersGroup netInfoResponseHeadersTitle "><span class=" "><br></span></div><div class="netInfoHeadersGroup netInfoResponseHeadersTitle "><span class=" "><b>Question:</b></span></div><div class="netInfoHeadersGroup netInfoResponseHeadersTitle "><span class=" ">I am confused because it appears the static files are served from Varnish but still have a cookie in their Request Headers. How do I remove the Request Headers cookie? Am I still gaining the benefits of Varnish if the Request Headers cookies exist?</span></div><div class="netInfoHeadersGroup netInfoResponseHeadersTitle "><span class=" "><br></span></div><div class="netInfoHeadersGroup netInfoResponseHeadersTitle "><span class=" ">Thank you,</span></div><div class="netInfoHeadersGroup netInfoResponseHeadersTitle "><span class=" ">Chris Altman</span></div><div class="netInfoHeadersGroup netInfoResponseHeadersTitle "><a href="http://my.perqworks.com">http://my.perqworks.com</a></div><div class="netInfoHeadersGroup netInfoResponseHeadersTitle "><span class=" "><a href="http://prtclr.com">http://prtclr.com</a></span></div><div class="netInfoHeadersGroup netInfoResponseHeadersTitle "><span class=" "><br></span></div><div class="netInfoHeadersGroup netInfoResponseHeadersTitle "><span class=" "><br></span></div><div class="netInfoHeadersGroup netInfoResponseHeadersTitle "><span class=" "><b>Response Headers</b></span><span class="netHeadersViewSource response "><b>view source</b></span></div><table class=" " cellpadding="0" cellspacing="0" style="position: static; z-index: auto; "><tbody role="list" aria-label="Response Headers" class="netInfoResponseHeadersBody "><tr role="listitem" class=" "><td role="presentation" class="netInfoParamName "><span class=" ">Server</span></td><td role="list" aria-label="Server" class="netInfoParamValue "><code role="listitem" class="focusRow subFocusRow ">Apache/2.2.14 (Ubuntu)</code></td></tr><tr role="listitem" class=" "><td role="presentation" class="netInfoParamName "><span class=" ">X-Powered-By</span></td><td role="list" aria-label="X-Powered-By" class="netInfoParamValue "><code role="listitem" class="focusRow subFocusRow ">PHP/5.3.2-1ubuntu4.5</code></td></tr><tr role="listitem" class=" "><td role="presentation" class="netInfoParamName "><span class=" ">Expires</span></td><td role="list" aria-label="Expires" class="netInfoParamValue "><code role="listitem" class="focusRow subFocusRow ">Thu, 29 Sep 2011 15:56:42 GMT</code></td></tr><tr role="listitem" class=" "><td role="presentation" class="netInfoParamName "><span class=" ">Vary</span></td><td role="list" aria-label="Vary" class="netInfoParamValue "><code role="listitem" class="focusRow subFocusRow ">Accept-Encoding</code></td></tr><tr role="listitem" class=" "><td role="presentation" class="netInfoParamName "><span class=" ">Last-Modified</span></td><td role="list" aria-label="Last-Modified" class="netInfoParamValue "><code role="listitem" class="focusRow subFocusRow ">Thu, 24 Jun 2010 21:16:50 GMT</code></td></tr><tr role="listitem" class=" "><td role="presentation" class="netInfoParamName "><span class=" ">Cache-Control</span></td><td role="list" aria-label="Cache-Control" class="netInfoParamValue "><code role="listitem" class="focusRow subFocusRow ">max-age=31536000, public</code></td></tr><tr role="listitem" class=" "><td role="presentation" class="netInfoParamName "><span class=" ">Content-Encoding</span></td><td role="list" aria-label="Content-Encoding" class="netInfoParamValue "><code role="listitem" class="focusRow subFocusRow ">gzip</code></td></tr><tr role="listitem" class=" "><td role="presentation" class="netInfoParamName "><span class=" ">Content-Type</span></td><td role="list" aria-label="Content-Type" class="netInfoParamValue "><code role="listitem" class="focusRow subFocusRow ">text/css; charset=utf-8</code></td></tr><tr role="listitem" class=" "><td role="presentation" class="netInfoParamName "><span class=" ">Content-Length</span></td><td role="list" aria-label="Content-Length" class="netInfoParamValue "><code role="listitem" class="focusRow subFocusRow ">3339</code></td></tr><tr role="listitem" class=" "><td role="presentation" class="netInfoParamName "><span class=" ">Date</span></td><td role="list" aria-label="Date" class="netInfoParamValue "><code role="listitem" class="focusRow subFocusRow ">Wed, 29 Sep 2010 15:56:42 GMT</code></td></tr><tr role="listitem" class=" "><td role="presentation" class="netInfoParamName "><span class=" ">X-Varnish</span></td><td role="list" aria-label="X-Varnish" class="netInfoParamValue "><code role="listitem" class="focusRow subFocusRow ">2062520895</code></td></tr><tr role="listitem" class=" "><td role="presentation" class="netInfoParamName "><span class=" ">Age</span></td><td role="list" aria-label="Age" class="netInfoParamValue "><code role="listitem" class="focusRow subFocusRow ">0</code></td></tr><tr role="listitem" class=" "><td role="presentation" class="netInfoParamName "><span class=" ">Via</span></td><td role="list" aria-label="Via" class="netInfoParamValue "><code role="listitem" class="focusRow subFocusRow ">1.1 varnish</code></td></tr><tr role="listitem" class=" "><td role="presentation" class="netInfoParamName "><span class=" ">Connection</span></td><td role="list" aria-label="Connection" class="netInfoParamValue "><code role="listitem" class="focusRow subFocusRow ">keep-alive</code></td></tr></tbody></table><div class="netInfoHeadersGroup netInfoRequestHeadersTitle "><span class=" "><br></span></div><div class="netInfoHeadersGroup netInfoRequestHeadersTitle "><span class=" "><br></span></div><div class="netInfoHeadersGroup netInfoRequestHeadersTitle "><span class=" "><b>Request Headers</b></span><span class="netHeadersViewSource request "><b>view source</b></span></div><table class=" " cellpadding="0" cellspacing="0" style="position: static; z-index: auto; "><tbody role="list" aria-label="Request Headers" class="netInfoRequestHeadersBody "><tr role="listitem" class=" "><td role="presentation" class="netInfoParamName "><span class=" ">Host</span></td><td role="list" aria-label="Host" class="netInfoParamValue "><code role="listitem" class="focusRow subFocusRow "><a href="http://my.perqapp.com">my.perqapp.com</a></code></td></tr><tr role="listitem" class=" "><td role="presentation" class="netInfoParamName "><span class=" ">User-Agent</span></td><td role="list" aria-label="User-Agent" class="netInfoParamValue "><code role="listitem" class="focusRow subFocusRow ">Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10</code></td></tr><tr role="listitem" class=" "><td role="presentation" class="netInfoParamName "><span class=" ">Accept</span></td><td role="list" aria-label="Accept" class="netInfoParamValue "><code role="listitem" class="focusRow subFocusRow ">text/css,*/*;q=0.1</code></td></tr><tr role="listitem" class=" "><td role="presentation" class="netInfoParamName "><span class=" ">Accept-Language</span></td><td role="list" aria-label="Accept-Language" class="netInfoParamValue "><code role="listitem" class="focusRow subFocusRow ">en-us,en;q=0.5</code></td></tr><tr role="listitem" class=" "><td role="presentation" class="netInfoParamName "><span class=" ">Accept-Encoding</span></td><td role="list" aria-label="Accept-Encoding" class="netInfoParamValue "><code role="listitem" class="focusRow subFocusRow ">gzip,deflate</code></td></tr><tr role="listitem" class=" "><td role="presentation" class="netInfoParamName "><span class=" ">Accept-Charset</span></td><td role="list" aria-label="Accept-Charset" class="netInfoParamValue "><code role="listitem" class="focusRow subFocusRow ">ISO-8859-1,utf-8;q=0.7,*;q=0.7</code></td></tr><tr role="listitem" class=" "><td role="presentation" class="netInfoParamName "><span class=" ">Keep-Alive</span></td><td role="list" aria-label="Keep-Alive" class="netInfoParamValue "><code role="listitem" class="focusRow subFocusRow ">115</code></td></tr><tr role="listitem" class=" "><td role="presentation" class="netInfoParamName "><span class=" ">Connection</span></td><td role="list" aria-label="Connection" class="netInfoParamValue "><code role="listitem" class="focusRow subFocusRow ">keep-alive</code></td></tr><tr role="listitem" class=" "><td role="presentation" class="netInfoParamName "><span class=" ">Referer</span></td><td role="list" aria-label="Referer" class="netInfoParamValue "><code role="listitem" class="focusRow subFocusRow "><a href="http://my.perqapp.com/login">http://my.perqapp.com/login</a></code></td></tr><tr role="listitem" class=" "><td role="presentation" class="netInfoParamName "><span class=" ">Cookie</span></td><td role="list" aria-label="Cookie" class="netInfoParamValue "><code role="listitem" class="focusRow subFocusRow ">perq=20; __utma=90567579.1481902958.1285699566.1285768162.1285775102.4; __utmz=90567579.1285699566.1</code><code role="listitem" class="focusRow subFocusRow ">.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); perqworks=c7jcfkdueap5ggtbds500al703; __utmb=90567579</code><code role="listitem" class="focusRow subFocusRow ">.4.10.1285775102; __utmc=90567579</code></td></tr></tbody></table><div><br></div></div><div><br></div><br><div>
<div style="font-size: 12px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: Arial; font-size: 11px; "><font class="Apple-style-span" color="#FF5F00">Matter</font><font class="Apple-style-span" color="#7A7A7A">.</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: Arial; font-size: 11px; "><font class="Apple-style-span" color="#7A7A7A">(404) 961-2065 office</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: Arial; font-size: 11px; "><font class="Apple-style-span" color="#7A7A7A">(404) 849-0870 mobile</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: Arial; font-size: 11px; "><a href="http://www.matterco.com/"><font class="Apple-style-span" color="#FF843D">www.matterco.com</font></a></div></div><div style="font-size: 12px; "><br></div><br class="Apple-interchange-newline">
</div>
<br></body></html>