<span style='font-family:Verdana'><span style='font-size:12px'>Hello,<br />
<br />
I run varnish 2.1 and my front page is cached for 300s.<br />
I would like to purge this page when the object expires.<br />
<br />
I placed this in vcl_hit:<br />
<br />
<div>
sub vcl_hit {</div>
<div>
if (obj.ttl < 1s) {</div>
<div>
set obj.ttl = 0s;</div>
<div>
error 200 "Purged.";</div>
<div>
}</div>
<div>
}<br />
<br />
Is this correct?<br />
Can obj.ttl be negative or when it's expired will be = 0?<br />
<br />
Thanks<br />
<br />
Nuno</div>
</span></span>