title: PURGE fails in Varnish cache
body: <p>I am using the following code to PURGE the homepage of a site:</p>
  
  <pre><code>$ch = curl_init();
  
  curl_setopt($ch, CURLOPT_URL, "http://www.mysite.com:8080/");
  curl_setopt($ch, CURLOPT_HEADER, 1);
  curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PURGE");
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLOPT_NOBODY, true);
  curl_setopt($ch, CURLOPT_CONNECTTIMEOUT_MS, 1000);
  
  $r = curl_exec($ch);
  
  echo "&lt;PRE&gt;$r&lt;/PRE&gt;";
  
  curl_close($ch);
  </code></pre>
  
  <p>The response from Varnish is as expected:</p>
  
  <pre><code>HTTP/1.1 200 Purged.
  Server: Varnish
  Content-Type: text/html; charset=utf-8
  Retry-After: 5
  Content-Length: 382
  Accept-Ranges: bytes
  Date: Fri, 10 Aug 2012 10:50:56 GMT
  X-Varnish: 617777456
  Age: 0
  Via: 1.1 varnish
  Connection: close
  X-Cache: MISS
  </code></pre>
  
  <p>So now I think that it is purged, but a further call to the page to check the headers suggest that it is not purged. As <code>Age: 15</code> and <code>X-Cache: HIT</code> are both set, suggesting that the page is still cached and is 15 seconds old.</p>
  
  <p>The TTL is 120.</p>
  
  <p>Am I missing something?</p>
  
  <p>Thanks
  Jake</p>