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

Julian Reschke <julian.reschke@greenbytes.de> Thu, 03 September 2015 08:43 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 585741B3277 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 3 Sep 2015 01:43:59 -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=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 YAe2n-Gto94u for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 3 Sep 2015 01:43:57 -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 A50201B3562 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 3 Sep 2015 01:43:57 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1ZXQ4U-0007rt-Gz for ietf-http-wg-dist@listhub.w3.org; Thu, 03 Sep 2015 08:40:38 +0000
Resent-Date: Thu, 03 Sep 2015 08:40:38 +0000
Resent-Message-Id: <E1ZXQ4U-0007rt-Gz@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <julian.reschke@greenbytes.de>) id 1ZXQ4M-0007r8-SJ for ietf-http-wg@listhub.w3.org; Thu, 03 Sep 2015 08:40:30 +0000
Received: from mail.greenbytes.de ([217.91.35.233]) by maggie.w3.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from <julian.reschke@greenbytes.de>) id 1ZXQ4L-0003n6-6M for ietf-http-wg@w3.org; Thu, 03 Sep 2015 08:40:30 +0000
Received: from [192.168.1.102] (unknown [84.187.57.213]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mail.greenbytes.de (Postfix) with ESMTPSA id 4ACE715A04A8; Thu, 3 Sep 2015 10:40:04 +0200 (CEST)
To: Ben Campbell <ben@nostrum.com>, The IESG <iesg@ietf.org>
References: <20150903012022.9941.52154.idtracker@ietfa.amsl.com>
Cc: Mark Nottingham <mnot@pobox.com>, ietf-http-wg@w3.org
From: Julian Reschke <julian.reschke@greenbytes.de>
Message-ID: <55E80765.2060004@greenbytes.de>
Date: Thu, 03 Sep 2015 10:40:05 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0
MIME-Version: 1.0
In-Reply-To: <20150903012022.9941.52154.idtracker@ietfa.amsl.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=217.91.35.233; envelope-from=julian.reschke@greenbytes.de; helo=mail.greenbytes.de
X-W3C-Hub-Spam-Status: No, score=-4.9
X-W3C-Hub-Spam-Report: AWL=0.012, BAYES_00=-1.9, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, W3C_AA=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: maggie.w3.org 1ZXQ4L-0003n6-6M e1efd278b09a9929a926d187f2757457
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/55E80765.2060004@greenbytes.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/30166
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 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.

> ----------------------------------------------------------------------
> 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).

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."

Best regards, Julian