RE: offline browsing

From: Markus Adamski <markusa@dont-contact.us>
Date: Tue, 04 May 1999 22:30:23 +0200 (CEST)

On 04-May-99 SVEC MILAN wrote:
> Hi,
> we use Squid (build 2, Red Hat Linux) as a proxy cache for out
> network. The network is connected to Internet by dial-up link.
> When the link is down and I try to connect to some site,
> Squid returns an error, even thought the requested page is cached
> in its cache. I would prefer older page rather than no page.
> Do you knou how to solve this?

What I do is this:
I have two config files for squid, squid.conf.online and
squid.conf.offline and one squid.conf with is the same as the latter
one so that squid starts properly.

In /etc/ppp/ip-up.local I have something like this:
cd <path to squid conf file>
mv squid.conf.online squid.conf
../bin/squid -k reconfigure

In /etc/ppp/ip-down.local it looks like this
cd <path to squid conf file>
mv squid.conf.offline squid.conf
../bin/squid -k reconfigure

The only difference in those two config files is, that the online
version has one line with 'offline_mode off' in it, and the offline
version 'offline_mode on`.

But this doesn't work with every site, for example www.hotbot.com seems
to not be cached.

--Markus
Received on Tue May 04 1999 - 14:45:12 MDT

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