TCP_HIT header

Per Buer perbu at
Wed Nov 5 18:10:58 CET 2008

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 --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the varnish-misc mailing list