trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sudhe...@apache.org
Subject [1/2] trafficserver git commit: [TS-3425]: include conditional headers in origin request, on no cache store
Date Thu, 05 Mar 2015 17:22:21 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master d22cdccd2 -> 0020ef1b6


[TS-3425]: include conditional headers in origin request, on no cache store


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/1e6a6aeb
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/1e6a6aeb
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/1e6a6aeb

Branch: refs/heads/master
Commit: 1e6a6aeb9460532a66e8556df731b419182e3cda
Parents: d22cdcc
Author: Sudheer Vinukonda <sudheerv@yahoo-inc.com>
Authored: Thu Mar 5 17:20:56 2015 +0000
Committer: Sudheer Vinukonda <sudheerv@yahoo-inc.com>
Committed: Thu Mar 5 17:21:42 2015 +0000

----------------------------------------------------------------------
 proxy/http/HttpTransact.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/1e6a6aeb/proxy/http/HttpTransact.cc
----------------------------------------------------------------------
diff --git a/proxy/http/HttpTransact.cc b/proxy/http/HttpTransact.cc
index a4b8e29..0097a67 100644
--- a/proxy/http/HttpTransact.cc
+++ b/proxy/http/HttpTransact.cc
@@ -7601,7 +7601,8 @@ HttpTransact::handle_server_died(State* s)
 bool
 HttpTransact::is_request_likely_cacheable(State* s, HTTPHdr* request)
 {
-  if ((s->method == HTTP_WKSIDX_GET || s->api_req_cacheable == true) &&
+  if ((s->method == HTTP_WKSIDX_GET || s->api_req_cacheable) &&
+      !s->api_server_response_no_store &&
       !request->presence(MIME_PRESENCE_AUTHORIZATION) &&
       (!request->presence(MIME_PRESENCE_RANGE) || s->txn_conf->cache_range_write))
{
     return true;


Mime
View raw message