Hi Per,<br>Thanks for the reply!<br><br>The issue here is not how to add the header, that is OK, I can do it just fine (even added the Foo: bar header just for the fun of it!). The problem is WHAT variable I can use that contains that information (MISS or HIT).<br>
Is there more documentation on the variables available than what is in vcl(7)?<br>Or anywhere else for that matter.<br><br>Thanks,<br><br>Alecs<br><br><div class="gmail_quote">On Wed, Nov 5, 2008 at 3:10 PM, Per Buer <span dir="ltr"><<a href="mailto:perbu@linpro.no">perbu@linpro.no</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Alecs Henry skrev:<br>
<div class="Ih2E3d">> Hi guys,<br>
><br>
> Is there a variable that I can print on the response header that will<br>
> give me the cache lookup result such as TCP_HIT or TCP_MISS?<br>
<br>
</div>I guess you can add the relevant header in vcl_hit and vcl_miss<br>
<br>
See the FAQ: <a href="http://varnish.projects.linpro.no/wiki/FAQ#HowdoIaddaHTTPheader" target="_blank">http://varnish.projects.linpro.no/wiki/FAQ#HowdoIaddaHTTPheader</a><br>
<br>
Just add a<br>
sub vcl_hit {<br>
  # add code from faq here<br>
}<br>
<font color="#888888"><br>
<br>
<br>
--<br>
<a href="http://linpro.no/" target="_blank">http://linpro.no/</a> | <a href="http://redpill.se/" target="_blank">http://redpill.se/</a><br>
<br>
</font></blockquote></div><br>