I'm trying to accomplish having varnish always return a cached object by having a large grace period, and have set:<br><br>in sub vcl_recv<br><br>set req.grace = 600m;<br><br>and <br><br>sub vcl_fetch {<br>        set obj.grace = 600m;<br>
        if (obj.ttl < 600s) {<br>                set obj.ttl = 600s;<br>        }<br>}<br><br><br>Grace just doesn't seem to work when the backend is down... within the ttl, the object gets returned when the backend is down, but as soon as the ttl is over it, it gives me a 503  Service unavailable, even though the grace is of 10hours.<br>
<br>Is there a way to server objects out of grace when the backend is down?<br><br><br>-Javier<br>