Repository: trafficserver
Updated Branches:
  refs/heads/master 666001cfa -> 4e4518cd5


TS-2542 Turn on caching zero length responses by default


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

Branch: refs/heads/master
Commit: 4e4518cd5de02adf9a83c611745357c1966c78ef
Parents: 666001c
Author: Leif Hedstrom <[email protected]>
Authored: Tue Feb 25 17:24:33 2014 -0700
Committer: Leif Hedstrom <[email protected]>
Committed: Tue Feb 25 17:24:36 2014 -0700

----------------------------------------------------------------------
 CHANGES                                           | 2 ++
 doc/reference/configuration/records.config.en.rst | 2 +-
 mgmt/RecordsConfig.cc                             | 2 +-
 proxy/config/records.config.default.in            | 2 +-
 4 files changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/4e4518cd/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index 383e31d..60030f7 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,8 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache Traffic Server 5.0.0
 
+  *) [TS-2542] Turn on caching zero length responses by default.
+
   *) [TS-2405] Change the default for proxy.config.net.sock_option_flag_out to
    1, which enables TCP_NODELAY.
 

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/4e4518cd/doc/reference/configuration/records.config.en.rst
----------------------------------------------------------------------
diff --git a/doc/reference/configuration/records.config.en.rst 
b/doc/reference/configuration/records.config.en.rst
index fc2fdcc..08da74b 100644
--- a/doc/reference/configuration/records.config.en.rst
+++ b/doc/reference/configuration/records.config.en.rst
@@ -1033,7 +1033,7 @@ Cache Control
 
    Enables (``1``) or disables (``0``) caching of HTTP requests.
 
-.. ts:cv:: CONFIG proxy.config.http.cache.allow_empty_doc INT 0
+.. ts:cv:: CONFIG proxy.config.http.cache.allow_empty_doc INT 1
    :reloadable:
 
    Enables (``1``) or disables (``0``) caching objects that have an empty

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/4e4518cd/mgmt/RecordsConfig.cc
----------------------------------------------------------------------
diff --git a/mgmt/RecordsConfig.cc b/mgmt/RecordsConfig.cc
index 929be7c..ccc3818 100644
--- a/mgmt/RecordsConfig.cc
+++ b/mgmt/RecordsConfig.cc
@@ -594,7 +594,7 @@ RecordElement RecordsConfig[] = {
   ,
   // Enabling this setting allows the proxy to cache empty documents. This 
currently requires
   // that the response has a Content-Length: header, with a value of "0".
-  {RECT_CONFIG, "proxy.config.http.cache.allow_empty_doc", RECD_INT, "0", 
RECU_DYNAMIC, RR_NULL, RECC_NULL, "[0-1]", RECA_NULL }
+  {RECT_CONFIG, "proxy.config.http.cache.allow_empty_doc", RECD_INT, "1", 
RECU_DYNAMIC, RR_NULL, RECC_NULL, "[0-1]", RECA_NULL }
   ,
   {RECT_CONFIG, "proxy.config.http.cache.cluster_cache_local", RECD_INT, "0", 
RECU_DYNAMIC, RR_NULL, RECC_INT, "[0-1]", RECA_NULL}
   ,

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/4e4518cd/proxy/config/records.config.default.in
----------------------------------------------------------------------
diff --git a/proxy/config/records.config.default.in 
b/proxy/config/records.config.default.in
index 91b0969..8382f6c 100644
--- a/proxy/config/records.config.default.in
+++ b/proxy/config/records.config.default.in
@@ -224,7 +224,7 @@ CONFIG proxy.config.http.push_method_enabled INT 0
 CONFIG proxy.config.http.cache.http INT 1
    # Enabling this setting allows the proxy to cache empty documents. This 
currently
    # requires that the response has a Content-Length: header, with a value of 
"0".
-CONFIG proxy.config.http.cache.allow_empty_doc INT 0
+CONFIG proxy.config.http.cache.allow_empty_doc INT 1
 CONFIG proxy.config.http.cache.ignore_client_no_cache INT 1
 CONFIG proxy.config.http.cache.ims_on_client_no_cache INT 1
 CONFIG proxy.config.http.cache.ignore_server_no_cache INT 0

Reply via email to