On 9/14/22 07:30, Dave Dykstra wrote:
I have tried playing around with reply_header_access and
request_header_access, and looking for other options having to do
with "ims" or "revalid" but have not had any luck finding an option
to ignore If-Modified-Since headers in requests from clients. Is
there a way to do it?
Today, an ICAP/eCAP REQMOD service can edit or remove an incoming
request header field. However, if you just want to ignore
If-Modified-Since headers in all client requests, I would probably
modify Squid sources instead of building a whole adaptation service for
that task. See the attached untested unofficial unsupported patch.
We are also working on a built-in feature that can be (ab)used for your
use case, but it is not ready for production use or the official review
yet. I am only mentioning it here to say that the source code
modifications suggested above may not be permanent/long-term...
HTH,
Alex.
diff --git a/src/client_side_request.cc b/src/client_side_request.cc
index 8a03441..b5690a0 100644
--- a/src/client_side_request.cc
+++ b/src/client_side_request.cc
@@ -1027,7 +1027,7 @@ clientInterpretRequestHeaders(ClientHttpRequest * http)
bool no_cache = false;
request->imslen = -1;
- request->ims = req_hdr->getTime(Http::HdrType::IF_MODIFIED_SINCE);
+ request->ims = -1; // XXX: Should be req_hdr->getTime(Http::HdrType::IF_MODIFIED_SINCE);
if (request->ims > 0)
request->flags.ims = true;
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users