Re: [squid-users] Is it possible to serve stale content on ERR_READ_TIMEOUT?

From: Henrik Nordstrom <hno@dont-contact.us>
Date: 21 Jan 2003 22:32:31 +0100

tis 2003-01-21 klockan 19.04 skrev Rhodes, Paul:
> Hi.
>
> The subject line says it all really. Is it possible to configure squid to
> serve cached stale content if a request fails because the remote host is
> unavailable? I know this is probably outside of the HTTP spec.

Squid does so by default if it can.. or at least some times..

Detail: If squid refreshes a cached object and the refresh fails to
contact the origin server the cached object will be given.

However: If the client forces a cache bypass then the error will be
returned.

> If this is not possible currently, how difficult would the changes be to
> enable this? I have seen the offline_mode configuration parameter, and
> examined it in the code, but am not sure which area exactly I would have to
> prod.

offline_node is related but not exacly this. It is more of a way to make
Squid be very aggressive about the freshness of what is has already in
it's cache.

Still the concerns with forced cache bypasses applies.

-- 
Henrik Nordstrom <hno@squid-cache.org>
MARA Systems AB, Sweden
Received on Tue Jan 21 2003 - 14:32:46 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:12:46 MST