January 2004
Intermediate to advanced
464 pages
14h 47m
English
negative_ttl
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 |
Default | negative_ttl 5 min |
Example | negative_ttl_1 minute |
Related | refresh_pattern |
Read now
Unlock full access