Purging with regexes over HTTP

Trond Michelsen trondmm-varnish at crusaders.no
Thu Nov 9 15:18:39 CET 2006


Hi.

I'm having problems purging URLs with the PURGE request-method. So
far, I've only been able to purge full URLs, one at a time. But I'd
like to purge them with regexes instead. 

Shouldn't it be possible to say 

PURGE LAYERS=roads HTTP/1.0
Host: hostname

and accomplish the same as you do when issuing the command

url.purge LAYERS=roads

in the varnish CLI?

Using the CLI works as expected, but I'm trying to write a script that
should purge URLs automatically, whenever new data is available. I
assume that it'll be easier to write a script that talks to varnish
over HTTP, than a script that uses Expect to control the CLI, so I'd
prefer using the HTTP interface.

-- 
Trond Michelsen



More information about the varnish-misc mailing list