This is an automated email from the ASF dual-hosted git repository.

eze pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 60bf0c1c2c Add VIA RWW cache result as acceptable for an IMS_HIT 
(#10640)
60bf0c1c2c is described below

commit 60bf0c1c2ca3e379c28d1631979341bc3d88c4ab
Author: Evan Zelkowitz <[email protected]>
AuthorDate: Wed Oct 18 14:46:58 2023 -0600

    Add VIA RWW cache result as acceptable for an IMS_HIT (#10640)
---
 proxy/http/HttpTransactHeaders.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/proxy/http/HttpTransactHeaders.cc 
b/proxy/http/HttpTransactHeaders.cc
index c4aa4f974a..46b71105c2 100644
--- a/proxy/http/HttpTransactHeaders.cc
+++ b/proxy/http/HttpTransactHeaders.cc
@@ -520,7 +520,8 @@ HttpTransactHeaders::generate_and_set_squid_codes(HTTPHdr 
*header, char *via_str
 
   else {
     if (via_string[VIA_CLIENT_REQUEST] == VIA_CLIENT_IMS) {
-      if ((via_string[VIA_CACHE_RESULT] == VIA_IN_CACHE_FRESH) || 
(via_string[VIA_CACHE_RESULT] == VIA_IN_RAM_CACHE_FRESH)) {
+      if ((via_string[VIA_CACHE_RESULT] == VIA_IN_CACHE_FRESH) || 
(via_string[VIA_CACHE_RESULT] == VIA_IN_RAM_CACHE_FRESH) ||
+          (via_string[VIA_CACHE_RESULT] == VIA_IN_CACHE_RWW_HIT)) {
         log_code = SQUID_LOG_TCP_IMS_HIT;
       } else {
         if (via_string[VIA_CACHE_RESULT] == VIA_IN_CACHE_STALE && 
via_string[VIA_SERVER_RESULT] == VIA_SERVER_NOT_MODIFIED) {

Reply via email to