105 200, 203, 204, 206, 300, 301, 404, 405, 410, 414, 501
111 if "expires" in headers:
114 if "cache-control" in headers
and headers[
"cache-control"] !=
"public":
120 if "date" not in headers
or "last-modified" not in headers:
124 last_modified = parsedate(headers[
"last-modified"])
125 if date
is None or last_modified
is None:
129 current_age = max(0, now - date)
131 freshness_lifetime = max(0, min(delta / 10, 24 * 3600))
132 if freshness_lifetime <= current_age:
135 expires = date + freshness_lifetime