Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 61172 invoked from network); 24 Nov 2007 22:13:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Nov 2007 22:13:16 -0000 Received: (qmail 56105 invoked by uid 500); 24 Nov 2007 22:12:58 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 55928 invoked by uid 500); 24 Nov 2007 22:12:58 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 55917 invoked by uid 99); 24 Nov 2007 22:12:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Nov 2007 14:12:57 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jaltuve@gmail.com designates 66.249.92.168 as permitted sender) Received: from [66.249.92.168] (HELO ug-out-1314.google.com) (66.249.92.168) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Nov 2007 22:12:38 +0000 Received: by ug-out-1314.google.com with SMTP id c2so942838ugf for ; Sat, 24 Nov 2007 14:12:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=5KMjBDMTnRUKBs3yO+6l3hwEXb/WkObcIP0R4so6Qrw=; b=nEVIVf00NX4P48VNhjG1JTi/gCNh/7SQv+5NSlotDyMJvpd4HGyMMfwvlF2ONVOskgGjgIlHlei+lwj6DwGr1LnzlrBD8FeKWfwqiJAqsefkS5E71Jxlr+XwrtZK/U7/fM16Aja/pdi3L3JR6grEa4xE2jFxdo2SZD/2DAy6UaM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:mime-version:content-type; b=x04VA7ZK1smt17BzFj97CPz6SGcxUwku/fK7XmPt+ki8nOGk+3EhoZqbos5T3QIfODFRbB6YBHS5tp0GBqqYIjY+r2Y8DcRa+7Wi0Id6HG5NgZxTlbyyc5K4iVoml59oqGvi4tzGD8t7Z59s+NzIiP6JmrZmUC99YydTwEVOHrM= Received: by 10.78.147.6 with SMTP id u6mr944446hud.1195942359610; Sat, 24 Nov 2007 14:12:39 -0800 (PST) Received: by 10.78.143.8 with HTTP; Sat, 24 Nov 2007 14:12:39 -0800 (PST) Message-ID: <24e094360711241412o71fc4dadne81c37b2d675023e@mail.gmail.com> Date: Sat, 24 Nov 2007 17:12:39 -0500 From: "Jesus Altuve" To: dev@httpd.apache.org Subject: mod_cache, Vary Header and (gzip,deflate) vs (gzip, deflate) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_34417_18412791.1195942359602" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_34417_18412791.1195942359602 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi! I've noticed that Internet Explorer (6) Accept-Encoding request header is sent with spaces (e.g gzip, deflate), so, if a Vary: Accept-Encoding is present when caching responses there will be a cache miss, even though the request should be served from cache. So, the workaround is to do an early processing for RequestHeader and modify it removing spaces. My question is: should mod_cache match Vary headers 'exactly' as they are or would it be advisable to simply 'remove spaces' from it and then match so browser bugs such as this won't cause cache misses? ------=_Part_34417_18412791.1195942359602 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi!
 
I've noticed that Internet Explorer (6) Accept-Encoding request header is sent with spaces
(e.g gzip, deflate), so, if a Vary: Accept-Encoding is present when caching responses there will be a cache miss, even though the request should be served from cache.
 
So, the workaround is to do an early processing for RequestHeader and modify it removing spaces. My question is:
 
should mod_cache match Vary headers 'exactly' as they are or would it be advisable to simply 'remove spaces' from it and then match so browser bugs such as this won't cause cache misses?
 
 
------=_Part_34417_18412791.1195942359602--