]> git.ipfire.org Git - thirdparty/squid.git/commit
Do not add HTTP 110 and 111 Warnings to TCP_REFRESH_UNMODIFIED responses.
authorAlex Rousskov <rousskov@measurement-factory.com>
Sat, 21 Jan 2012 01:13:53 +0000 (18:13 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 21 Jan 2012 01:13:53 +0000 (18:13 -0700)
commitf7807de67eb91c69d4a5f04a8eaaad3acfb52463
tree4332aef78ff2ce833a99d63c868d0f069eecd99b
parentde09f391e682182f27176bedf54eb10c5d97ea33
Do not add HTTP 110 and 111 Warnings to TCP_REFRESH_UNMODIFIED responses.

The old "stale if hit" logic did not account for cases where the stored
stale response became fresh due to a successful revalidation with the
origin server.
When the stored response was stale at the time of the request, we were
adding 110 "Response is stale" and even 111 "Revalidation failed"
Warning headers to responses while logging TCP_REFRESH_UNMODIFIED, which
is considered a hit.
src/client_side_reply.cc