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 4856741F0 for ; Sun, 5 Jun 2011 00:16:39 +0000 (UTC) Received: (qmail 85961 invoked by uid 500); 5 Jun 2011 00:16:39 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 85933 invoked by uid 500); 5 Jun 2011 00:16:39 -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 85925 invoked by uid 99); 5 Jun 2011 00:16:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Jun 2011 00:16:38 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jmarantz@google.com designates 216.239.44.51 as permitted sender) Received: from [216.239.44.51] (HELO smtp-out.google.com) (216.239.44.51) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Jun 2011 00:16:32 +0000 Received: from hpaq5.eem.corp.google.com (hpaq5.eem.corp.google.com [172.25.149.5]) by smtp-out.google.com with ESMTP id p550GBad002528 for ; Sat, 4 Jun 2011 17:16:11 -0700 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1307232971; bh=+wvdD6zi8sL9YDAOzad1wfhg7Tc=; h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject: To:Content-Type; b=JIHCkLZEcWZjZ5sW++MSSuaqTiiE8rwk8TI8pD4JIw6nxjGiXakxx60/7Pcpsd6bm PpYTf1eWx0slnNRugkv8g== Received: from pxi9 (pxi9.prod.google.com [10.243.27.9]) by hpaq5.eem.corp.google.com with ESMTP id p550G8Xg020500 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sat, 4 Jun 2011 17:16:09 -0700 Received: by pxi9 with SMTP id 9so2069546pxi.0 for ; Sat, 04 Jun 2011 17:16:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=beta; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=r4G9wYn4KZmic664eJI8+U1zVGgLSRXYFetH+U///uo=; b=EfAL1bcO7NjKcM+qKzd1RcUtP2AEyqnKIcnwv+S8hhRoA+FPYFvQzRqgl4vjucg8N1 JPPnMJv8WHqt/Tk0/FHQ== DomainKey-Signature: a=rsa-sha1; c=nofws; d=google.com; s=beta; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=Q/96TUCTH9oKPnlTrpsbOZtSfOISt7V5DkcymLRW9rzg+MmcbLhsF3BSugFWlzxh7e X3E6ZZgRYCkuvbojLffQ== Received: by 10.143.30.19 with SMTP id h19mr659374wfj.285.1307232966345; Sat, 04 Jun 2011 17:16:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.44.9 with HTTP; Sat, 4 Jun 2011 17:15:46 -0700 (PDT) In-Reply-To: References: From: Joshua Marantz Date: Sat, 4 Jun 2011 20:15:46 -0400 Message-ID: Subject: Re: Vary:User-Agent, best practices, and making the web faster. To: "modules-dev@httpd.apache.org" Content-Type: multipart/alternative; boundary=001636e1f8e599053204a4ebe4ba X-System-Of-Record: true X-Virus-Checked: Checked by ClamAV on apache.org --001636e1f8e599053204a4ebe4ba Content-Type: text/plain; charset=ISO-8859-1 On Sat, Jun 4, 2011 at 7:58 PM, Ben Noordhuis wrote: > > And I still don't understand how that relates to Vary:User-Agent. > What's > > really at issue here seems more related to proxies; is that right? That > > proxies were not respecting Accept-Encoding, but sending gzipped content > to > > browsers that did not want it? Is that still a problem? Which proxies > were > > broken? Are they still broken? > > Some popular OSS packages depend on Vary: User-Agent to make > downstream proxies (reverse or forward) do the right thing. > I'm pretty interested in deconstructing this further. Can you be more specific? Which OSS packages? Under what scenario would a proxy do the wrong thing in the absence of Vary:User-Agent (other than, obviously, when the content actually varies based on user-agent)? > And, while I understand the reluctance to help me figure out from our > module > > 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) > I think that at least some proxies would likely decide to simply *not* cache in the presence of vary:user-agent, rather than explode their caches. That makes the web slower. But, Varnish, in particular, will explode its cache: http://www.varnish-cache.org/docs/trunk/tutorial/vary.html. I believe that will also make the web slower, because the hit-rate will suffer and they'll be less room the cache for differentiated content. > but removing it from the documentation will break things for someone > somewhere (also bad). > I'm trying to get a handle on exactly what would break, and for whom :) -Josh --001636e1f8e599053204a4ebe4ba--