You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2011/07/05 17:36:57 UTC
svn commit: r1143109 -
/trafficserver/traffic/trunk/proxy/http/HttpTransactCache.cc
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 //