Migrating v3 to v4: How to efectively detect a cache miss in VCL?
lkarsten at varnish-software.com
Wed May 28 10:00:21 CEST 2014
On Wed, May 14, 2014 at 11:15:47AM +0200, Carlos Peñas wrote:
> Hi. I'm starting the tests to migrate to v4 and I have an issue setting
> headers to detect the HIT/MISS.
The best way to do this is to look at the X-Varnish header.
Example from 4.0:
X-Varnish: 98650 98648
If it contains one number it is a cache miss, if it has two numbers it
was a hit.
More information about the varnish-misc