url.purge

Poul-Henning Kamp phk at phk.freebsd.dk
Mon Apr 21 16:40:33 CEST 2008


In message <DF3A409993D9D940BA8B02F0C396CF8A014C17B1 at mailserver.form-studios.co
m>, "Pavel Pragin" writes:

>directions in this link:
>http://varnish.projects.linpro.no/wiki/VCLExamplePurging
>
>I added these lines to my VCL configuration file and restarted Varnish:
>sub vcl_hit {
>        if (req.request =3D=3D "PURGE") {
>                set obj.ttl =3D 0s;
>                error 200 "Purged.";
>        }
>}

That is not enough, you need to include the _entire_ example.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



More information about the varnish-misc mailing list