Re: current HTTP/2 spec prevents gzip of response to "Range" request

Matthew Kerwin <matthew@kerwin.net.au> Wed, 26 March 2014 04:09 UTC

Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F3CFA1A0083 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 25 Mar 2014 21:09:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.289
X-Spam-Level:
X-Spam-Status: No, score=-6.289 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jEGoJlYyCb58 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 25 Mar 2014 21:09:14 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id AE9411A00AA for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 25 Mar 2014 21:09:14 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1WSf7X-0005T0-2J for ietf-http-wg-dist@listhub.w3.org; Wed, 26 Mar 2014 04:07:19 +0000
Resent-Date: Wed, 26 Mar 2014 04:07:19 +0000
Resent-Message-Id: <E1WSf7X-0005T0-2J@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <phluid61@gmail.com>) id 1WSf7A-0005Qz-1w for ietf-http-wg@listhub.w3.org; Wed, 26 Mar 2014 04:06:56 +0000
Received: from mail-qa0-f42.google.com ([209.85.216.42]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <phluid61@gmail.com>) id 1WSf76-0002V9-F9 for ietf-http-wg@w3.org; Wed, 26 Mar 2014 04:06:55 +0000
Received: by mail-qa0-f42.google.com with SMTP id k15so1708572qaq.29 for <ietf-http-wg@w3.org>; Tue, 25 Mar 2014 21:06:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=SvOaFIWsyYmmcTXIFt9jDzX5wb3ijkDtP5ydbVpMnIU=; b=dsHpR48GXsfGfxZoBq9fHs5gM+pH9gjF8KimwfxXjkjtRXZTiwKU1QYjiiSPNWgWtO XTzU+WidHLp6IBlklLJnoH4sqlLjiE2ze3lmJS7aKOV11RQbgz817ScfAR5RafsUoEcn 0gsUHnX47+mSfcHi7ask6vJmmkfCENhRtLD4fyhIJ0zTJFDtXuvNr2dQuMrIDdJPKyqd W4FOVO4GqFm7ICpQLlSf6iEXK5+xBxo31CSM4cN3ppVe9az+Y6irxL9CYDgfthxMj8dG 7VrRRCdPlyk0tY4jjBDYDOactaymzdJ5XXnxj63kvgLf2l+x8N+HIykYGIVECb/0TmAW NV2Q==
MIME-Version: 1.0
X-Received: by 10.140.105.131 with SMTP id c3mr82274441qgf.29.1395806786519; Tue, 25 Mar 2014 21:06:26 -0700 (PDT)
Sender: phluid61@gmail.com
Received: by 10.140.43.69 with HTTP; Tue, 25 Mar 2014 21:06:26 -0700 (PDT)
In-Reply-To: <CAOdDvNq72sLThOcoJ5FbWU8VC47A+_6=2koOv2Lcp8=qoi3vBw@mail.gmail.com>
References: <0356EBBE092D394F9291DA01E8D28EC20100F3AB51@sem002pd.sg.iaea.org> <CABkgnnUQWFT932map4DDCqxLpXxSL=1EeauTDSjsvHSxrT0pug@mail.gmail.com> <q8o0j9picqc6ode3v9v3g1uqgtd5dhi02q@hive.bjoern.hoehrmann.de> <CABkgnnUjXGNedAi4miJ7V3bFtMBEfkGTb8HLf7QsC6uY=zTjUg@mail.gmail.com> <C48420EB-9297-40A9-BD92-D08057E42439@gbiv.com> <0546C0B5-EE2C-4430-B6A7-CAB7AF904623@mnot.net> <D24915E7-E546-4A05-A7A3-8DE75CD06696@gbiv.com> <0356EBBE092D394F9291DA01E8D28EC20100F3EA35@sem002pd.sg.iaea.org> <CAOdDvNrOJXu8r86A1wyShaj94ccTcEZByLnEcE_=SWGj-E66aw@mail.gmail.com> <CACweHND1EYzPOQFqPkQL5q1V+KYeaW3GvzxLn6m0QyTwYfOUEg@mail.gmail.com> <CAOdDvNq72sLThOcoJ5FbWU8VC47A+_6=2koOv2Lcp8=qoi3vBw@mail.gmail.com>
Date: Wed, 26 Mar 2014 14:06:26 +1000
X-Google-Sender-Auth: VP02yK_U5JI612EZmAdXl9H-lic
Message-ID: <CACweHNBpo==FHVsZHjD-VP928zFs5KJML6DkF4YCSJg78EWaCA@mail.gmail.com>
From: Matthew Kerwin <matthew@kerwin.net.au>
To: Patrick McManus <pmcmanus@mozilla.com>
Cc: K.Morgan@iaea.org, "Roy T. Fielding" <fielding@gbiv.com>, Mark Nottingham <mnot@mnot.net>, Martin Thomson <martin.thomson@gmail.com>, Bjoern Hoehrmann <derhoermi@gmx.net>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="001a113a9738af89b404f57a97cc"
Received-SPF: pass client-ip=209.85.216.42; envelope-from=phluid61@gmail.com; helo=mail-qa0-f42.google.com
X-W3C-Hub-Spam-Status: No, score=-2.8
X-W3C-Hub-Spam-Report: AWL=-2.380, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1WSf76-0002V9-F9 b50ed5b608de99ffd2a242e56362702e
X-Original-To: ietf-http-wg@w3.org
Subject: Re: current HTTP/2 spec prevents gzip of response to "Range" request
Archived-At: <http://www.w3.org/mid/CACweHNBpo==FHVsZHjD-VP928zFs5KJML6DkF4YCSJg78EWaCA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/22913
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 26 March 2014 12:02, Patrick McManus <pmcmanus@mozilla.com> wrote:

> Hi Matthew,
>
> On Tue, Mar 25, 2014 at 6:28 PM, Matthew Kerwin <matthew@kerwin.net.au>wrote:
>
>> \Surely that would be *easier* to scavenge
>>
>
> my reticence is not about implementation complexity in my client.
>

I understand. Sorry.

The mandatory implied Accept-Encoding codifies a well worn and useful
>>> optimization.. Transfer-Encoding doesn't have the same track record to
>>> justify adding it at the same level.
>>>
>>
>> It's not at the same level; CE is above TE.
>>
>
> I'm sorry to have created confusion. I mean I don't support the same level
> of conformance (i.e. the suggested MUST decode) - not the same level in the
> application. as I say, I'm pretty neutral on defining negotiation of it.
>

That makes sense. In that case I don't disagree; forcing it with a
MUST-level requirement, or even a SHOULD, is not the right approach. Maybe
a best practice guideline, if it's decided that it is, in fact, best
practice.

That said, I'm pretty strongly *for* supporting the negotiation in the
first place. Maybe it needs to be something that's clearly a part of
HTTP/2, freeing it from the stigma attached to the existing
TE/Transfer-Encoding headers.

After much deliberation I have a crazy idea: introduce a new frame type for
hop-by-hop headers.

As far as I can see, we've eliminated connection headers (and the
Connection header) from HTTP/2, with the exception of "TE: trailers", and I
don't think it's necessarily appropriate to reintroduce them, at least not
through the HEADERS frame.

I can think of a couple of benefits:
* It would be easier to clearly distinguish hop-by-hop and end-to-end
concerns (e.g. hopefully help clear up some of the CE/TE confusion).
* It would provide more flexibility than, say, a settings parameter or a
flag in a data frame, by allowing the same type of coding negotiation
currently allowed in HTTP.
* It would be extensible, allowing experimental headers, not unlike HH from
[draft-nottingham-http-browser-hints-05].
* It also makes it easier for people to ignore them ;)

Does anyone have a reason (aside from YAGNI) that we wouldn't want to
pursue this new frame type?

-- 
  Matthew Kerwin
  http://matthew.kerwin.net.au/