<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size:
14px; vertical-align: baseline; background-color: rgb(255, 255,
255); clear: both; word-wrap: break-word; color: rgb(0, 0, 0);
font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 18px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-position: initial
initial; background-repeat: initial initial;">Hi All,<br>
</p>
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size:
14px; vertical-align: baseline; background-color: rgb(255, 255,
255); clear: both; word-wrap: break-word; color: rgb(0, 0, 0);
font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 18px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-position: initial
initial; background-repeat: initial initial;">I am unable to purge
objects in varnish using CURL</p>
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size:
14px; vertical-align: baseline; background-color: rgb(255, 255,
255); clear: both; word-wrap: break-word; color: rgb(0, 0, 0);
font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 18px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-position: initial
initial; background-repeat: initial initial;">CURL command: curl
-X PURGE localhost/public/stylesheets/main.css -v the curl command
is returning 200 OK response. the object is not getting purged</p>
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size:
14px; vertical-align: baseline; background-color: rgb(255, 255,
255); clear: both; word-wrap: break-word; color: rgb(0, 0, 0);
font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 18px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-position: initial
initial; background-repeat: initial initial;">config file in
VARNISH : default.vcl<br>
<br>
sub vcl_miss {<br>
if (req.request == "PURGE") {<br>
purge;<br>
error 404 "Not in cache.";<br>
}<br>
if (req.http.user-agent ~ "spider") {<br>
error 503 "Not presently in cache";<br>
}<br>
return (fetch);<br>
}<br>
<br>
sub vcl_hit {<br>
if (req.request == "PURGE") {<br>
purge;<br>
error 200 "Purged.";<br>
}<br>
return (deliver);<br>
}<br>
</p>
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size:
14px; vertical-align: baseline; background-color: rgb(255, 255,
255); clear: both; word-wrap: break-word; color: rgb(0, 0, 0);
font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 18px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-position: initial
initial; background-repeat: initial initial;"> sub vlc.recv{<br>
if (req.request == "PURGE") {<br>
if (!client.ip ~ purge) {<br>
error 405 "Not allowed.";<br>
}<br>
return(lookup);<br>
}<br>
}<br>
</p>
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size:
14px; vertical-align: baseline; background-color: rgb(255, 255,
255); clear: both; word-wrap: break-word; color: rgb(0, 0, 0);
font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 18px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-position: initial
initial; background-repeat: initial initial;">Kindly, help on this<br>
</p>
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size:
14px; vertical-align: baseline; background-color: rgb(255, 255,
255); clear: both; word-wrap: break-word; color: rgb(0, 0, 0);
font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 18px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-position: initial
initial; background-repeat: initial initial;">Thanks<br>
Puneet<br>
</p>
</body>
</html>