<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Hi,</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
I modified vcl_fetch as follows:</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
sub vcl_fetch {</div><blockquote type="cite" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><div> set beresp.grace = 8h; </div><div>set beresp.ttl = 8h;</div></blockquote>
<blockquote type="cite" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><div> # return(restart);</div><div>}</div></blockquote><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">but still Varnish is not showing cached content when the polling page goes down.</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
May it have to do with the headers sent by EZ?</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><div><br></div><div><br></div><div><div> HTTP/1.1 200 OK</div><div> Server: Apache/2.2.14 (Ubuntu)</div>
<div> Expires: Mon, 26 Jul 1997 05:00:00 GMT</div><div> Last-Modified: Thu, 02 Aug 2012 16:26:26 GMT</div><div> Cache-Control: no-cache, must-revalidate</div><div> Pragma: no-cache</div><div> X-Powered-By: eZ Publish</div>
<div> Served-by: xxxxxxxxxx</div><div> Content-language: it-IT</div><div> Vary: Accept-Encoding</div><div> Content-Type: text/html; charset=utf-8</div><div> Date: Thu, 02 Aug 2012 16:26:26 GMT</div><div> X-Varnish: 447384858</div>
<div> Age: 0</div><div> Via: 1.1 varnish</div><div> Connection: close</div><div><br></div></div><div>Since the expiration date is always in the past and the last-modified header is always set to now() I added</div><div>
<br></div><div>unset beresp.http.expires;</div><div><br></div><div>at the very beginning of vcl_fetch, but I didn't get any improvement.</div><div><br></div><div><br></div></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
Thanks,</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"> Nico</div>