prefer_direct

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 on|off

Default

prefer_direct off

Example

prefer_direct on

Related

nonhierarchical_direct, never_direct, always_direct



    Appendix A. Config File Reference