Help with caching and failover

nicola sabbi nsabbi at
Thu Aug 2 18:30:18 CEST 2012

I modified vcl_fetch as follows:

sub vcl_fetch {

 set beresp.grace = 8h;
set  beresp.ttl = 8h;

  #  return(restart);

but still Varnish is not showing cached content when the polling page goes
May it have to do with the headers sent by EZ?

  HTTP/1.1 200 OK
  Server: Apache/2.2.14 (Ubuntu)
  Expires: Mon, 26 Jul 1997 05:00:00 GMT
  Last-Modified: Thu, 02 Aug 2012 16:26:26 GMT
  Cache-Control: no-cache, must-revalidate
  Pragma: no-cache
  X-Powered-By: eZ Publish
  Served-by: xxxxxxxxxx
  Content-language: it-IT
  Vary: Accept-Encoding
  Content-Type: text/html; charset=utf-8
  Date: Thu, 02 Aug 2012 16:26:26 GMT
  X-Varnish: 447384858
  Age: 0
  Via: 1.1 varnish
  Connection: close

Since the expiration date is always in the past and the last-modified
header is always set to now() I added

unset beresp.http.expires;

at the very beginning of vcl_fetch, but I didn't get any improvement.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list