我无法使用 CURL 清除清漆中的对象
CURL 命令: curl -X PURGE localhost/public/stylesheets/main.css -v curl 命令返回 200 OK 响应。对象没有被清除
config file in VARNISH : default.vcl
sub vcl_miss {
if (req.request == "PURGE") {
purge;
error 404 "Not in cache.";
}
if (req.http.user-agent ~ "spider") {
error 503 "Not presently in cache";
}
return (fetch);
}
sub vcl_hit {
if (req.request == "PURGE") {
purge;
error 200 "Purged.";
}
return (deliver);
}
sub vlc.recv{
if (req.request == "PURGE") {
if (!client.ip ~ purge) {
error 405 "Not allowed.";
}
return(lookup);
}
}
请帮忙