trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject svn commit: r1143109 - /trafficserver/traffic/trunk/proxy/http/HttpTransactCache.cc
Date Tue, 05 Jul 2011 15:36:57 GMT
Author: zwoop
Date: Tue Jul  5 15:36:56 2011
New Revision: 1143109

URL: http://svn.apache.org/viewvc?rev=1143109&view=rev
Log:
TS-861 Need a way to disable Vary: Accept-Encoding checking so a plugin can take care of that.

Author: William Bardwell
Review: Leif

Modified:
    trafficserver/traffic/trunk/proxy/http/HttpTransactCache.cc

Modified: trafficserver/traffic/trunk/proxy/http/HttpTransactCache.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/proxy/http/HttpTransactCache.cc?rev=1143109&r1=1143108&r2=1143109&view=diff
==============================================================================
--- trafficserver/traffic/trunk/proxy/http/HttpTransactCache.cc (original)
+++ trafficserver/traffic/trunk/proxy/http/HttpTransactCache.cc Tue Jul  5 15:36:56 2011
@@ -1245,6 +1245,13 @@ HttpTransactCache::CalcVariability(Cache
           !ink_string_fast_strcasecmp((char *) field->str, "User-Agent"))
         continue;
 
+      // Disable Vary mismatch checking for Accept-Encoding.  This is only safe to
+      // set if you are promising to fix any Accept-Encoding/Content-Encoding mismatches.
+      if (http_config_params->ignore_accept_encoding_mismatch && 
+          !ink_string_fast_strcasecmp((char *) field->str, "Accept-Encoding"))
+        continue;
+
+
 
       ///////////////////////////////////////////////////////////////////
       // Take the current vary field and look up the headers in        //



Mime
View raw message