<sect1>Removed tags<label id="removedtags">
<p>
<descrip>
+ <tag>refresh_pattern</tag>
+ <p>Option <em>ignore-auth</em> removed. Its original intent was
+ to improve caching. HTTP/1.1 permits caching of authenticated
+ messages under conditions which Squid does check for and obey.
</descrip>
break;
}
-
- for (R = Config.Refresh; R; R = R->next) {
- if (!R->flags.ignore_auth)
- continue;
-
- debugs(22, DBG_IMPORTANT, "WARNING: use of 'ignore-auth' in 'refresh_pattern' violates HTTP");
-
- break;
- }
-
}
#endif
#if !USE_HTTP_VIOLATIONS
if (head->flags.ignore_private)
storeAppendPrintf(entry, " ignore-private");
-
- if (head->flags.ignore_auth)
- storeAppendPrintf(entry, " ignore-auth");
-
#endif
storeAppendPrintf(entry, "\n");
int ignore_no_store = 0;
int ignore_must_revalidate = 0;
int ignore_private = 0;
- int ignore_auth = 0;
#endif
int i;
else if (!strcmp(token, "ignore-private"))
ignore_private = 1;
else if (!strcmp(token, "ignore-auth"))
- ignore_auth = 1;
+ debugs(22, DBG_PARSE_NOTE(2), "UPGRADE: refresh_pattern option 'ignore-auth' is obsolete. Remove it.");
else if (!strcmp(token, "reload-into-ims")) {
reload_into_ims = 1;
refresh_nocache_hack = 1;
if (ignore_private)
t->flags.ignore_private = true;
-
- if (ignore_auth)
- t->flags.ignore_auth = true;
-
#endif
t->next = NULL;
// RFC 2068, sec 14.9.4 - MUST NOT cache any response with Authentication UNLESS certain CC controls are present
// allow HTTP violations to IGNORE those controls (ie re-block caching Auth)
- if (request && (request->flags.auth || request->flags.authSent) && !REFRESH_OVERRIDE(ignore_auth)) {
+ if (request && (request->flags.auth || request->flags.authSent)) {
if (!rep->cache_control) {
debugs(22, 3, HERE << "NO because Authenticated and server reply missing Cache-Control");
return 0;
// HTTPbis pt6 section 3.2: a response CC:must-revalidate is present
} else if (rep->cache_control->mustRevalidate() && !REFRESH_OVERRIDE(ignore_must_revalidate)) {
- debugs(22, 3, HERE << "Authenticated but server reply Cache-Control:public");
+ debugs(22, 3, HERE << "Authenticated but server reply Cache-Control:must-revalidate");
mayStore = true;
#if USE_HTTP_VIOLATIONS