]> git.ipfire.org Git - thirdparty/squid.git/commit
Do not respond with HTTP/304 to unconditional requests
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Thu, 1 Jun 2017 23:49:09 +0000 (17:49 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Thu, 1 Jun 2017 23:49:09 +0000 (17:49 -0600)
commite7e0f8a42af794754a48239ecbf64bf62043792c
tree05272abdf6ac2fba4f568a1ecea66eafc868a369
parent39fe14b23a8168e233600625a45034a7b33c912a
Do not respond with HTTP/304 to unconditional requests

... after internal revalidation. The original unconditional HttpRequest
was still marked (and processed) as conditional after internal
revalidation because the original (clear) Last-Modified and ETag values
were not restored (cleared) after the internal revalidation abused them.

TODO: Isolate the code converting the request into conditional one _and_
the code that undoes that conversion, to keep both actions in sync.
src/client_side_reply.cc
src/client_side_reply.h