prefer_direct

 < Day Day Up > 

prefer_direct

This directive affects Squid's neighbor selection algorithm for hierarchical requests ( cachable responses). It is only relevant if you have one or more neighbor caches. When Squid builds a list of next -hop locations for cache misses, it puts neighbor caches before the origin server by default. If you would rather have Squid put the origin server before neighbors, enable the prefer_direct directive. See Section 10.10.

Syntax

 prefer_direct onoff 

Default

 prefer_direct off 

Example

 prefer_direct on 

Related

nonhierarchical_direct , never_direct , always_direct

 < 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