Help with caching and failover

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


Hi,
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
down.
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.


Thanks,
 Nico
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120802/3b4ae2d5/attachment.html>


More information about the varnish-misc mailing list