Cache'ing request despite PASS

Erik Weber twiztar at gmail.com
Mon May 23 23:56:05 CEST 2011


On Mon, May 23, 2011 at 5:18 PM, Krzysztof Dajka <alteriks at gmail.com> wrote:
> Hi,
> I'd like to know whether somebody tried to write a vcl that would
> serve always fresh object from backend (for example PASSed) but
> despite this request would be stripped from cookies and cached. This
> cached object would be only served if whole director went sick. Is
> this possible to write such vcl or it would require changes in varnish
> code?
>
> If this idea is insane, I'd be happy to hear somebody shouting 'it's
> totally crazy!' ;)

I might be overlooking something or be mistaken, but can't you just
set the ttl to zero and do normal lookups? Thus if the backend is down
you should manage to hit your grace/saint mode and deliver cached
content.

-- 
Erik




More information about the varnish-misc mailing list