Name

offline_mode

Synopsis

When you enable offline_mode, Squid returns every cached response as an unvalidated cache hit. These are tagged with TCP_OFFLINE_HIT in access.log. When in this mode, Squid still attempts to forward cache misses. If your system truly is offline, some requests may hang while waiting for the DNS or HTTP transaction to timeout.

Syntax

offline_mode on|off

Default

offline_mode off

Example

offline_mode on

Get Squid: The Definitive Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.