PURGE Regardless of Vary/Hash

Dridi Boukelmoune dridi.boukelmoune at zenika.com
Tue Jan 13 21:23:19 CET 2015

On Tue, Jan 13, 2015 at 8:55 PM, Max Clark <max.clark at gmail.com> wrote:
> On Tue, Jan 13, 2015 at 11:52 AM, Dridi Boukelmoune
> <dridi.boukelmoune at zenika.com> wrote:
>> Like I said, a purge picks objects from a hash. So in your case if you
>> want to purge www.foo.com/directory/article/ you need to handle
>> X-Edition headers in your purge request(s).
> Is there a way to handle this solely in the Varnish VCL?

The header is part of the request, it is user input and shouldn't even
be trusted in the first place. Most of the time I'd reject a request
without a host header for instance.

And also I don't even know X-Edition's purpose, so I can't answer your
question with just VCL. That being said, the answer is most likely no

More information about the varnish-misc mailing list