This option is not yet supported by Squid-3.
DOC_END
+# Options removed in 3.5
+NAME: hierarchy_stoplist
+TYPE: obsolete
+DOC_START
+ Remove this line. Use always_direct or cache_peer_access ACLs instead if you need to prevent cache_peer use.
+DOC_END
+
# Options Removed in 3.3
NAME: ignore_ims_on_miss
TYPE: obsolete
possible forwarding paths be tried multiple times.
DOC_END
-NAME: hierarchy_stoplist
-TYPE: wordlist
-DEFAULT: none
-LOC: Config.hierarchy_stoplist
-DOC_START
- A list of words which, if found in a URL, cause the object to
- be handled directly by this cache. In other words, use this
- to not query neighbor caches for certain objects. You may
- list this option multiple times.
-
- Example:
- hierarchy_stoplist cgi-bin ?
-
- Note: never_direct overrides this option.
-DOC_END
-
COMMENT_START
MEMORY CACHE OPTIONS
-----------------------------------------------------------------------------
DEFAULT: on
DOC_START
By default, Squid will send any non-hierarchical requests
- (matching hierarchy_stoplist or not cacheable request type) direct
- to origin servers.
+ (not cacheable request type) direct to origin servers.
When this is set to "off", Squid will prefer to send these
requests to parents.
static int
clientHierarchical(ClientHttpRequest * http)
{
- const char *url = http->uri;
HttpRequest *request = http->request;
HttpRequestMethod method = request->method;
- const wordlist *p = NULL;
// intercepted requests MUST NOT (yet) be sent to peers unless verified
if (!request->flags.hostVerified && (request->flags.intercepted || request->flags.interceptTproxy))
if (method != Http::METHOD_GET)
return 0;
- /* scan hierarchy_stoplist */
- for (p = Config.hierarchy_stoplist; p; p = p->next)
- if (strstr(url, p->key))
- return 0;
-
if (request->flags.loopDetected)
return 0;