]> git.ipfire.org Git - thirdparty/squid.git/commit
HTTP: MUST ignore a [revalidation] response with an older Date header.
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Sun, 9 Oct 2016 19:47:26 +0000 (08:47 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 9 Oct 2016 19:47:26 +0000 (08:47 +1300)
commit9ead6b573ccf2b48947ecc891d9ef57894f80070
tree00be296f8a9295d2df9c4a3e84b24061e83d5642
parent49c1e1307a90411e3cad8b294ec662cf6bd4aba9
HTTP: MUST ignore a [revalidation] response with an older Date header.

Before this patch, Squid violated the RFC 7234 section 4 MUST
requirement: "When more than one suitable response is stored, a cache
MUST use the most recent response (as determined by the Date header
field)." This problem may be damaging in cache hierarchies where
parent caches may have different responses. Trusting the older response
may lead to excessive IMS requests, cache thrashing and other problems.
src/HttpReply.cc
src/HttpReply.h
src/LogTags.h
src/client_side_reply.cc
src/http.cc
src/http.h