]> git.ipfire.org Git - thirdparty/squid.git/commit - src/http.cc
Reload into If-None-Match
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Mon, 15 Jul 2013 07:49:43 +0000 (10:49 +0300)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Mon, 15 Jul 2013 07:49:43 +0000 (10:49 +0300)
commit46017fdd714079786edc17eef8590cdd58204959
tree9d15f60abefa9a621193d9d256dcd7122cd2cce3
parentf4f6ab06d1b87cfb9f662314163f80409caae311
Reload into If-None-Match

This patch sends an If-None-Match  request, when we need to re-validate
if a cached object which has a strong ETag is still valid.

This is also done in the cases an HTTP client request contains HTTP
headers prohibiting a from-cache response (i.e., a "reload" request).
The use of If-None-Match request in this context violates RFC 2616 and
requires using reload-into-ims option within refresh_pattern squid.conf
directive.

The exact definition of a "reload request" and the adjustment/removal of
"reload" headers is the same as currently used for reload-into-ims
option support. This patch is not modifying that code/logic, just adding
an If-None-Match header in addition to the IMS header that Squid already
adds.

This is a Measurement Factory Project
src/HttpRequest.cc
src/HttpRequest.h
src/Store.h
src/cf.data.pre
src/client_side_reply.cc
src/http.cc
src/store.cc