Mailing List Archive

Grace mode with 404 responses?
Hello, folks. I’m testing a Varnish 4.1.1 setup. Specifically I’m working with shielding a client service from an unreliable remote service by proxying and caching responses from the remote system.

Grace mode is working fine for situations where the remote server is unresponsive (e.g. apache turned off), but does not seem to work when a 404 is returned for a resource. I immediately get the 404 on the client when the TTL (not the TTL + grace) is expired.

I’m assuming this is something I’m not doing right in my VCL file, but I can’t figure out what.

Is there a canonical example of how to handle this properly?

Thanks.

-Pete
_______________________________________________
varnish-misc mailing list
varnish-misc@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
Re: Grace mode with 404 responses? [ In reply to ]
Hi Peter,

what is not working in the case of 404?

--
Guillaume Quintard

On Fri, Dec 2, 2016 at 9:11 AM, Peter Loron <peterloron@gmail.com> wrote:

> Hello, folks. I’m testing a Varnish 4.1.1 setup. Specifically I’m working
> with shielding a client service from an unreliable remote service by
> proxying and caching responses from the remote system.
>
> Grace mode is working fine for situations where the remote server is
> unresponsive (e.g. apache turned off), but does not seem to work when a 404
> is returned for a resource. I immediately get the 404 on the client when
> the TTL (not the TTL + grace) is expired.
>
> I’m assuming this is something I’m not doing right in my VCL file, but I
> can’t figure out what.
>
> Is there a canonical example of how to handle this properly?
>
> Thanks.
>
> -Pete
> _______________________________________________
> varnish-misc mailing list
> varnish-misc@varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc