Repository: trafficserver Updated Branches: refs/heads/master d74282165 -> fc8608b2f
TS-3234 Make 'crc' log show correct cache status Before, it could show TCP_REFRESH_HIT even when ATS did not show the object being in cache. Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/fc8608b2 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/fc8608b2 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/fc8608b2 Branch: refs/heads/master Commit: fc8608b2fb825cba7d7dda97bb0db08b426fc19d Parents: d742821 Author: Masaori Koshiba <[email protected]> Authored: Tue Aug 18 08:38:02 2015 -0600 Committer: Leif Hedstrom <[email protected]> Committed: Tue Aug 18 08:38:02 2015 -0600 ---------------------------------------------------------------------- proxy/http/HttpTransactHeaders.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/fc8608b2/proxy/http/HttpTransactHeaders.cc ---------------------------------------------------------------------- diff --git a/proxy/http/HttpTransactHeaders.cc b/proxy/http/HttpTransactHeaders.cc index d0ca6fd..b9783c9 100644 --- a/proxy/http/HttpTransactHeaders.cc +++ b/proxy/http/HttpTransactHeaders.cc @@ -530,7 +530,7 @@ HttpTransactHeaders::generate_and_set_squid_codes(HTTPHdr *header, char *via_str if ((via_string[VIA_CACHE_RESULT] == VIA_IN_CACHE_FRESH) || (via_string[VIA_CACHE_RESULT] == VIA_IN_RAM_CACHE_FRESH)) { log_code = SQUID_LOG_TCP_IMS_HIT; } else { - if (via_string[VIA_SERVER_RESULT] == VIA_SERVER_NOT_MODIFIED) { + if (via_string[VIA_CACHE_RESULT] == VIA_IN_CACHE_STALE && via_string[VIA_SERVER_RESULT] == VIA_SERVER_NOT_MODIFIED) { log_code = SQUID_LOG_TCP_REFRESH_HIT; } else { log_code = SQUID_LOG_TCP_IMS_MISS;
