if (cache_control->getSMaxAge() != HttpHdrCc::S_MAXAGE_UNSET)
return date + cache_control->getSMaxAge();
- if (cache_control->getMaxAge() >= 0)
+ if (cache_control->getMaxAge() != HttpHdrCc::MAX_AGE_UNSET)
return date + cache_control->getMaxAge();
} else {
/*
* header, but no Date for reference?
*/
- if (cache_control->getSMaxAge()!=HttpHdrCc::S_MAXAGE_UNSET)
+ if (cache_control->getSMaxAge() != HttpHdrCc::S_MAXAGE_UNSET)
return squid_curtime;
- if (cache_control->getMaxAge() >= 0)
+ if (cache_control->getMaxAge() != HttpHdrCc::MAX_AGE_UNSET)
return squid_curtime;
}
}
#endif
if (NULL != cc) {
- if (cc->getMaxAge() >= 0) {
+ if (cc->getMaxAge() != HttpHdrCc::MAX_AGE_UNSET) {
#if USE_HTTP_VIOLATIONS
if (R->flags.ignore_reload && cc->getMaxAge() == 0) {
debugs(22, 3, "refreshCheck: MAYBE: client-max-age = 0 and ignore-reload");