negative_ttl

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 time-specification

Default

negative_ttl 5 min

Example

negative_ttl_1 minute

Related

refresh_pattern



    Appendix A. Config File Reference