unsigned int override_lastmod:1;
unsigned int reload_into_ims:1;
unsigned int ignore_reload:1;
- unsigned int ignore_no_cache:1;
unsigned int ignore_no_store:1;
unsigned int ignore_must_revalidate:1;
unsigned int ignore_private:1;
break;
}
- for (R = Config.Refresh; R; R = R->next) {
- if (!R->flags.ignore_no_cache)
- continue;
-
- debugs(22, DBG_IMPORTANT, "WARNING: use of 'ignore-no-cache' in 'refresh_pattern' violates HTTP");
-
- break;
- }
-
for (R = Config.Refresh; R; R = R->next) {
if (!R->flags.ignore_no_store)
continue;
if (head->flags.ignore_reload)
storeAppendPrintf(entry, " ignore-reload");
- if (head->flags.ignore_no_cache)
- storeAppendPrintf(entry, " ignore-no-cache");
-
if (head->flags.ignore_no_store)
storeAppendPrintf(entry, " ignore-no-store");
int override_lastmod = 0;
int reload_into_ims = 0;
int ignore_reload = 0;
- int ignore_no_cache = 0;
int ignore_no_store = 0;
int ignore_must_revalidate = 0;
int ignore_private = 0;
override_expire = 1;
else if (!strcmp(token, "override-lastmod"))
override_lastmod = 1;
- else if (!strcmp(token, "ignore-no-cache"))
- ignore_no_cache = 1;
else if (!strcmp(token, "ignore-no-store"))
ignore_no_store = 1;
else if (!strcmp(token, "ignore-must-revalidate"))
/* tell client_side.c that this is used */
#endif
+ } else if (!strcmp(token, "ignore-no-cache")) {
+ debugs(22, DBG_PARSE_NOTE(2), "UPGRADE: refresh_pattern option 'ignore-no-cache' is obsolete. Remove it.");
} else
debugs(22, DBG_CRITICAL, "refreshAddToList: Unknown option '" << pattern << "': " << token);
}
if (ignore_reload)
t->flags.ignore_reload = 1;
- if (ignore_no_cache)
- t->flags.ignore_no_cache = 1;
-
if (ignore_no_store)
t->flags.ignore_no_store = 1;
override-lastmod
reload-into-ims
ignore-reload
- ignore-no-cache
ignore-no-store
ignore-must-revalidate
ignore-private
this feature could make you liable for problems which
it causes.
- ignore-no-cache ignores any ``Pragma: no-cache'' and
- ``Cache-control: no-cache'' headers received from a server.
- The HTTP RFC never allows the use of this (Pragma) header
- from a server, only a client, though plenty of servers
- send it anyway.
-
ignore-no-store ignores any ``Cache-control: no-store''
headers received from a server. Doing this VIOLATES
the HTTP standard. Enabling this feature could make you
#if 0 // waiting on HTTPbis WG agreement before we do this
// NP: given the must-revalidate exception we should also be able to exempt no-cache.
- } else if (rep->cache_control->noCache() && !REFRESH_OVERRIDE(ignore_no_cache)) {
+ } else if (rep->cache_control->noCache()) {
debugs(22, 3, HERE << "Authenticated but server reply Cache-Control:no-cache");
mayStore = true;
#endif