TCP_HIT header

Alecs Henry alecshenry at
Wed Nov 5 18:46:23 CET 2008

Hi Per,
Thanks for the reply!

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).
Is there more documentation on the variables available than what is in
Or anywhere else for that matter.



On Wed, Nov 5, 2008 at 3:10 PM, Per Buer <perbu at> wrote:

> Alecs Henry skrev:
> > Hi guys,
> >
> > Is there a variable that I can print on the response header that will
> > give me the cache lookup result such as TCP_HIT or TCP_MISS?
> I guess you can add the relevant header in vcl_hit and vcl_miss
> See the FAQ:
> Just add a
> sub vcl_hit {
>  # add code from faq here
> }
> --
> |
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list