Return-Path: X-Original-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7E3FD44F5 for ; Sat, 4 Jun 2011 23:59:10 +0000 (UTC) Received: (qmail 79457 invoked by uid 500); 4 Jun 2011 23:59:10 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 79428 invoked by uid 500); 4 Jun 2011 23:59:10 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 79419 invoked by uid 99); 4 Jun 2011 23:59:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Jun 2011 23:59:10 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of info@bnoordhuis.nl designates 74.125.83.45 as permitted sender) Received: from [74.125.83.45] (HELO mail-gw0-f45.google.com) (74.125.83.45) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Jun 2011 23:59:02 +0000 Received: by gwb19 with SMTP id 19so1565857gwb.18 for ; Sat, 04 Jun 2011 16:58:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.236.180.134 with SMTP id j6mr4196065yhm.440.1307231920316; Sat, 04 Jun 2011 16:58:40 -0700 (PDT) Received: by 10.236.107.198 with HTTP; Sat, 4 Jun 2011 16:58:40 -0700 (PDT) X-Originating-IP: [87.214.96.125] In-Reply-To: References: Date: Sun, 5 Jun 2011 01:58:40 +0200 Message-ID: Subject: Re: Vary:User-Agent, best practices, and making the web faster. From: Ben Noordhuis To: modules-dev@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Sun, Jun 5, 2011 at 00:34, Joshua Marantz wrote: > It was with some reluctance that I brought this up. =A0It occurs to me th= at > this idea propagates the sort of spec violations that led to this issue > (inappropriate user of Vary:User-Agent) in the first place. =A0 However, = I'm > trying to figure out how to improve compliance to support legitimate uses= of > Vary:User-Agent without causing mod_pagespeed to become significantly les= s > ineffective across a broad range of sites. > > We have found that putting complaints in Apache logs mostly causes disks = to > fill and servers to crash -- although that does get it noticed :). =A0The > problem, put another way, is that mod_pagespeed cannot distinguish > legitimate uses of Vary:User-Agent, so it really has no business complain= ing > in logs. =A0Complaining in docs is fine; but some existing mod_pagespeed = users > that simply type "sudo yum update" will later notice a performance-drop a= nd > may not consult the docs to figure out why. > > I'm also trying to grok the first response from Eric: > > It's because of the other (dated) canned exceptions that set/unset > no-gzip/gzip-only-text/html based on the User-Agent, to second-guess > browsers that send AE:gzip but can't properly deal with it. > > > Going backwards: =A0which browsers send AE:gzip but can't properly deal w= ith > it? =A0 Does IE6 have that issue or is it only true of IE5? =A0 I know th= at IE6 > has had issues with compression in the past but they appear to be address= ed > by patches issued by Microsoft four and a half years ago: > http://support.microsoft.com/default.aspx?scid=3Dkb;en-us;Q312496. =A0Mor= eover > IE6 is shrinking in market > share(~ > 10%) and IE5 does not appear in the pie-chart at all. This was indeed a (since fixed) problem with IE6. I haven't seen the gzip issue crop up since but that is purely anecdotal. > And I still don't understand how that relates to Vary:User-Agent. =A0What= 's > really at issue here seems more related to proxies; is that right? =A0Tha= t > proxies were not respecting Accept-Encoding, but sending gzipped content = to > browsers that did not want it? =A0Is that still a problem? =A0Which proxi= es were > broken? =A0Are they still broken? Some popular OSS packages depend on Vary: User-Agent to make downstream proxies (reverse or forward) do the right thing. > And, while I understand the reluctance to help me figure out from our mod= ule > what values were passed to SetEnvIfNoCase and Header, I would like to see > whether there's agreement that the Apache 2.2 docs for mod_deflate are no > longer appropriate -- and in fact harmful. I've been mulling it over for 10 minutes and I can't decide. It's harmful because it leads to a proliferation of cached objects (bad) but removing it from the documentation will break things for someone somewhere (also bad).