Name

prefer_direct

Synopsis

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

Get Squid: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.