HTTP Compliance: entry is stale if request has max-age=0

From: Alex Rousskov <rousskov_at_measurement-factory.com>
Date: Mon, 04 Oct 2010 17:06:28 -0600

HTTP Compliance: entry is stale if request has max-age=0.

We should always do validation for requests with Cache-Control
max-age=0, even when entry age is also zero. In our case, RFC 2616 says:

     freshness_lifetime = max_age_value
     response_is_fresh = (freshness_lifetime > current_age)

response_is_fresh is always false if freshness_lifetime is zero...

The check code was introduced in r5998 with a "Import of fix-ranges
branch" message. The code was commented out at the time of that commit,
for reasons unknown.

Test case:
     test_case/rfc2616/noSrv-hit-stale-max-age-req

Received on Mon Oct 04 2010 - 23:06:41 MDT

This archive was generated by hypermail 2.2.0 : Tue Oct 05 2010 - 12:00:04 MDT