Name

negative_ttl

Synopsis

Squid takes the liberty of caching certain error responses, such as “connection refused” and 404 (Not Found) messages. In most cases, repeating the request again immediately is likely to result in the same error. This directive specifies how long Squid caches these errors. Cache hits for negatively cached responses are logged with TCP_NEGATIVE_HIT in access.log.

Syntax

negative_ttl time-specification

Default

negative_ttl 5 min

Example

negative_ttl_1 minute

Related

refresh_pattern

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.