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
_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to