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

cmcfarlen pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit d0b6bd64529d1538ab10a6b7027272b34e69ee4f
Author: Masaori Koshiba <[email protected]>
AuthorDate: Tue Jan 28 08:10:51 2025 +0900

    [compress] Make warning if compress plugin has cache and range-request 
config (#11986)
    
    (cherry picked from commit d543c8a30e4447a422bf688cb0299cf3074ece51)
---
 plugins/compress/configuration.cc | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/plugins/compress/configuration.cc 
b/plugins/compress/configuration.cc
index 208ea79d8d..82cb15d75d 100644
--- a/plugins/compress/configuration.cc
+++ b/plugins/compress/configuration.cc
@@ -405,6 +405,11 @@ Configuration::Parse(const char *path)
   // Update the defaults for the last host configuration too, if needed.
   current_host_configuration->update_defaults();
 
+  // Check combination of configs
+  if (!current_host_configuration->cache() && 
current_host_configuration->range_request()) {
+    warning("Combination of 'cache false' and 'range-request true' might 
deliver corrupted content");
+  }
+
   if (state != kParseStart) {
     warning("the parser state indicates that data was expected when it reached 
the end of the file (%d)", state);
   }

Reply via email to