Commit 7f5dbd31 authored by Per Buer's avatar Per Buer

Update for V4 syntax.

parent c890439f
......@@ -15,20 +15,10 @@ the IP address of the client against an ACL with the match operator.::
sub vcl_recv {
if (req.method == "PURGE") {
if (client.ip ~ local) {
return(lookup);
return(purge);
} else {
return(synth(403, "Access denied."));
}
}
}
sub vcl_hit {
if (req.method == "PURGE") {
set obj.ttl = 0s;
error 200 "Purged.";
}
}
sub vcl_miss {
if (req.method == "PURGE") {
error 404 "Not in cache.";
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment