Re: Ben Campbell's Discuss on draft-ietf-httpbis-cice-02: (with DISCUSS and COMMENT)

"Ben Campbell" <ben@nostrum.com> Thu, 03 September 2015 14:17 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@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 519BC1A92AC for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 3 Sep 2015 07:17:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.912
X-Spam-Level:
X-Spam-Status: No, score=-6.912 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=unavailable
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 kQQQ6g0ZzUHd for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 3 Sep 2015 07:17:25 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E11E01B2D6E for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 3 Sep 2015 07:17:07 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1ZXVGc-0008Fi-Gr for ietf-http-wg-dist@listhub.w3.org; Thu, 03 Sep 2015 14:13:30 +0000
Resent-Date: Thu, 03 Sep 2015 14:13:30 +0000
Resent-Message-Id: <E1ZXVGc-0008Fi-Gr@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <ben@nostrum.com>) id 1ZXVGU-0008F1-M1 for ietf-http-wg@listhub.w3.org; Thu, 03 Sep 2015 14:13:22 +0000
Received: from raven.nostrum.com ([69.55.229.100] helo=nostrum.com) by lisa.w3.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA256:128) (Exim 4.80) (envelope-from <ben@nostrum.com>) id 1ZXVGS-0004kO-Vp for ietf-http-wg@w3.org; Thu, 03 Sep 2015 14:13:22 +0000
Received: from [10.0.1.23] (cpe-70-119-203-4.tx.res.rr.com [70.119.203.4]) (authenticated bits=0) by nostrum.com (8.15.2/8.14.9) with ESMTPSA id t83ECcqR053164 (version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 3 Sep 2015 09:12:49 -0500 (CDT) (envelope-from ben@nostrum.com)
X-Authentication-Warning: raven.nostrum.com: Host cpe-70-119-203-4.tx.res.rr.com [70.119.203.4] claimed to be [10.0.1.23]
From: Ben Campbell <ben@nostrum.com>
To: Julian Reschke <julian.reschke@greenbytes.de>
Cc: The IESG <iesg@ietf.org>, Mark Nottingham <mnot@pobox.com>, ietf-http-wg@w3.org
Date: Thu, 03 Sep 2015 09:12:38 -0500
Message-ID: <764FAF3E-4D7D-4ACB-BB37-2168300EEE88@nostrum.com>
In-Reply-To: <55E80765.2060004@greenbytes.de>
References: <20150903012022.9941.52154.idtracker@ietfa.amsl.com> <55E80765.2060004@greenbytes.de>
MIME-Version: 1.0
Content-Type: text/plain; format="flowed"
X-Mailer: MailMate (1.9.2r5107)
Received-SPF: pass client-ip=69.55.229.100; envelope-from=ben@nostrum.com; helo=nostrum.com
X-W3C-Hub-Spam-Status: No, score=-4.9
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, W3C_AA=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: lisa.w3.org 1ZXVGS-0004kO-Vp 89df5b6e95110a6af81b80f109f338bc
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Ben Campbell's Discuss on draft-ietf-httpbis-cice-02: (with DISCUSS and COMMENT)
Archived-At: <http://www.w3.org/mid/764FAF3E-4D7D-4ACB-BB37-2168300EEE88@nostrum.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/30170
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 3 Sep 2015, at 3:40, Julian Reschke wrote:

> On 2015-09-03 03:20, Ben Campbell wrote:
>> ...
>> ----------------------------------------------------------------------
>> DISCUSS:
>> ----------------------------------------------------------------------
>>
>> This should be easy to resolve, but I want to make sure there's been
>> thought on it:
>>
>> section 3 says:
>> "Note that this information is specific to the associated request; 
>> the
>> set of supported encodings might be different for other resources on
>> the same server, and could change over time or depend on other
>> aspects of the request (such as the request method)."
>>
>> .. but then later...
>>
>> "[...] However,  the header field can also be used to indicate to 
>> clients
>> that content
>> codings are supported, to optimize future interactions.  For example,
>> a resource might include it in a 2xx response when the request
>> payload was big enough to justify use of a compression coding, but
>> the client failed do so."
>>
>> This seems to indicate a need for guidance on when the client can 
>> reuse
>> the Accept-Encoding value.
>> ...
>
> Well, it can be used with caveats mentioned in the first excerpt. The 
> client can try, and if the situation *has* changed it will find out.
>
> Note that this isn't different from other similar HTTP features, such 
> as the "Allow" and "Accept" header fields.

Okay, based on the "allow" and "accept" bit, I will clear the discuss 
(but keep the comment.) I do think some explicit guidance on when it's 
reasonable to send or use the header would be useful. Right now it's 
left for the reader to infer.

>
>> ----------------------------------------------------------------------
>> COMMENT:
>> ----------------------------------------------------------------------
>>
>> -- section 3, 5th paragraph:
>> For the two SHOULDs and one SHOULD NOT in this paragraph, can you 
>> suggest
>> some reasons an implementation of this spec might choose something
>> different?
>
> This goes back to the discussion about whether we are changing 
> HTTP/1.1, or whether this is an optional extension (which it is; I 
> don't believe we have consensus to make a change here that would make 
> existing HTTP/1.1 servers non-compliant).

I personally think a MUST in this draft would be expected to apply to 
implementers of this draft, not people who don't implement (or possibly 
even read) it.

>
> The intent of this spec is to be eventually in-lined into RFC7231bis; 
> as such it might make sense to actually get rid of the first two 
> SHOULDs. The SHOULD NOT actually can be a MUST NOT without the risk of 
> making any existing server non-compliant which isn't already 
> non-compliant.
>
> "Servers that fail a request due to an unsupported content coding 
> ought to respond with a 415 status and ought to include an 
> "Accept-Encoding" header field in that response, allowing clients to 
> distinguish between content coding related issues and media type 
> related issues. In order to avoid confusion with media type related 
> problems, servers that fail a request with a 415 status for reasons 
> unrelated to content codings MUST NOT include the "Accept-Encoding" 
> header field."

Are you proposing to make that change now, or at the point of merging 
into RFC7231bis


Thanks!

Ben.