You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by wb...@apache.org on 2015/01/29 20:36:50 UTC
trafficserver git commit: TS-3344 401 responses invalidate cache
entry even if TSHttpTxnServerRespIgnore() used
Repository: trafficserver
Updated Branches:
refs/heads/master f4099f3b3 -> c9339f925
TS-3344 401 responses invalidate cache entry even if TSHttpTxnServerRespIgnore() used
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/c9339f92
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/c9339f92
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/c9339f92
Branch: refs/heads/master
Commit: c9339f9255db94e2caf43a3487efb5e96d55fadc
Parents: f4099f3
Author: William Bardwell <wb...@apache.org>
Authored: Thu Jan 29 14:35:53 2015 -0500
Committer: William Bardwell <wb...@apache.org>
Committed: Thu Jan 29 14:36:30 2015 -0500
----------------------------------------------------------------------
CHANGES | 2 ++
proxy/http/HttpTransact.cc | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/c9339f92/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index c35c2b3..bfcdd7a 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,8 @@
-*- coding: utf-8 -*-
Changes with Apache Traffic Server 5.3.0
+ *) [TS-3344] 401 responses invalidate cache entry even if TSHttpTxnServerRespIgnore() used
+
*) [TS-3339] Multithread access to PluginVC can cause crash due to unprotected check of shutdown/close
*) [TS-3300] Add a @internal ACL filter.
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/c9339f92/proxy/http/HttpTransact.cc
----------------------------------------------------------------------
diff --git a/proxy/http/HttpTransact.cc b/proxy/http/HttpTransact.cc
index 7e3678e..f330d4e 100644
--- a/proxy/http/HttpTransact.cc
+++ b/proxy/http/HttpTransact.cc
@@ -4246,7 +4246,7 @@ HttpTransact::handle_cache_operation_on_forward_server_response(State* s)
s->next_action = SM_ACTION_SERVE_FROM_CACHE;
client_response_code = base_response->status_get();
} else if (s->cache_info.action == CACHE_DO_UPDATE) {
- if (s->www_auth_content == CACHE_AUTH_FRESH) {
+ if (s->www_auth_content == CACHE_AUTH_FRESH || s->api_server_response_ignore) {
s->cache_info.action = CACHE_DO_NO_ACTION;
} else if (s->www_auth_content == CACHE_AUTH_STALE && server_response_code == HTTP_STATUS_UNAUTHORIZED) {
s->cache_info.action = CACHE_DO_NO_ACTION;