Well, I'll keep it simple, PURGE requests (or so I thought?) were pretty much all handled by literally:
acl purge {
"localhost";
"127.0.0.1";
}
and then
if (req.method == "PURGE") {
if (!client.ip ~ purge) {
return(synth(405, "This IP is not allowed to send PURGE requests."));
}
return (purge);
}
I fairly certain both of the above statements are "correct", the thing I'm hung-up on is that if I sent a
curl -X PURGE http://domain.com/
or
curl -X PURGE http://domain.com/.*
and Varnish sends back 200 Purged well... the cache is purged? Even if it's just the homepage and not the entire cache (swear it was all using the above .* method) is and the above snippets of code are correct is there any particular reason http://domain.com (as in the actual homepage) isn't purged?
varnishncsa shows:
MYIP - - [16/Feb/2015:23:23:10 -0600] "PURGE http://domain.com/ HTTP/1.1" 200 241 "-" "curl/7.29.0"
I know I gotta be missing something silly but I can't figure it out?