]> git.ipfire.org Git - thirdparty/squid.git/commit
Bug 2833 pt3: Do not respond with HTTP/304 to unconditional requests
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Wed, 14 Jun 2017 21:59:06 +0000 (09:59 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 14 Jun 2017 21:59:06 +0000 (09:59 +1200)
commit7c7e5e416e91eb00ee62a04e28fa73dd93044441
tree3761b71fef5abc4941cb2bc184e09ee4ac253521
parentfe89e4fefb78b00fcea2773ead511e1d7af12629
Bug 2833 pt3: 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