Varnish caching and the X-Requested-With header

Guillaume Quintard guillaume at
Thu Jan 21 13:32:37 CET 2016

Hi Angelo,

Your first step should be to look at the varnishlog, find the relevant
request, and compare with what your vcl (and the builtin one) to understand
the behaviour.

Guillaume Quintard

On Thu, Jan 14, 2016 at 8:55 PM, Angelo Höngens <A.Hongens at>

> Hey, I'm trying to debug varnish not caching some request. I see the
> uncacheable object has the request header X-Requested-With: XMLHttpRequest,
> and I guess that somehow make Varnish not cache the request. But I cannot
> find this anywhere in the documentation. Is this expected behavior? In
> which module (vcl_recv, vcl_deliver) can I undo this behavior?
> --
> With kind regards,
> Angelo Höngens
> Systems Administrator
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list