]> 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>
Sat, 8 Oct 2016 22:19:44 +0000 (11:19 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 8 Oct 2016 22:19:44 +0000 (11:19 +1300)
commiteace013e57cd3c97fcd495944c34bce41d130673
tree9f45b5532ab0589388701b6c7354e10f2f8ff6dd
parent1bd998545ba62008fae1d09e367678b960f443b9
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.cc
src/LogTags.h
src/client_side_reply.cc
src/http.cc
src/http.h