you should be able to add a req.http.header in your vcl_fetch. I dont
believe vcl_fetch gets called unless you are in a cache_miss and you need
to contact the backend.
sub vcl_fetch {
req.http.X-Custom-Header = "test";
}
Not sure varnish exposes the miss "reason" though, aside from the fact that
it is either not cacheable or it is and just isn't in the cache.
On Sun, Dec 11, 2011 at 1:59 PM, Arjen Schat <[email protected]> wrote:
> HI All,
>
> Is there a way to send an extra header to the backend request if a miss
> occurs?
> There are 4 scenario's I can think off: purged, old, not set and lru. This
> would make debugging and stats a lot easier.
>
>
> Thanks,
> Arjen
>
>
>
>
> _______________________________________________
> varnish-misc mailing list
> [email protected]
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc