varnish 3 - odd behaviour with using PURGE against cached objects

Andreas Plesner Jacobsen apj at mutt.dk
Wed Aug 14 09:36:14 CEST 2013


On Wed, Aug 14, 2013 at 03:56:47PM +1000, Paul McInerney wrote:
> 
> sub vcl_hit {
>    if (req.request == "PURGE") {
>     error 200 "Purged.";
>     }
> }
> 
> sub vcl_miss {
>     if (req.request == "PURGE") {
>     error 404 "Not in cache.";
>   }
> }


You're missing the purge command in hit and miss.

-- 
Andreas



More information about the varnish-misc mailing list