negative_ttl

 < Day Day Up > 

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

 < Day Day Up > 


Squid
Squid: The Definitive Guide
ISBN: 0596001622
EAN: 2147483647
Year: 2004
Pages: 401
Authors: Duane Wessels

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net