Re: Weak validators in conditional requests

Eduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com> Thu, 06 September 2018 23:45 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 (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8C6C8130F21 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 6 Sep 2018 16:45:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.65
X-Spam-Level:
X-Spam-Status: No, score=-2.65 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 yoc82Wu4qVsh for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 6 Sep 2018 16:45:08 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [IPv6:2603:400a:ffff:804:801e:34:0:38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CB511130F13 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 6 Sep 2018 16:45:08 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.89) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1fy3v2-0001xA-5W for ietf-http-wg-dist@listhub.w3.org; Thu, 06 Sep 2018 23:42:36 +0000
Resent-Date: Thu, 06 Sep 2018 23:42:36 +0000
Resent-Message-Id: <E1fy3v2-0001xA-5W@frink.w3.org>
Received: from titan.w3.org ([2603:400a:ffff:804:801e:34:0:4c]) by frink.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <eduard.bagdasaryan@measurement-factory.com>) id 1fy3uw-0001vf-HK for ietf-http-wg@listhub.w3.org; Thu, 06 Sep 2018 23:42:30 +0000
Received: from mail.measurement-factory.com ([104.237.131.42]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <eduard.bagdasaryan@measurement-factory.com>) id 1fy3uv-0006Xj-6b for ietf-http-wg@w3.org; Thu, 06 Sep 2018 23:42:30 +0000
Received: from [192.168.1.70] (128-69-229-35.broadband.corbina.ru [128.69.229.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.measurement-factory.com (Postfix) with ESMTPSA id 7876BE04C for <ietf-http-wg@w3.org>; Thu, 6 Sep 2018 23:42:07 +0000 (UTC)
To: ietf-http-wg@w3.org
References: <bf5a9b56-c416-d4ab-2fbe-ac9b0482dcaa@measurement-factory.com> <0ACB722F-BC39-49BE-9401-F01193E45DAD@mnot.net> <59f34446-46d1-7988-dae8-81bb799f68f9@measurement-factory.com> <afeb58fa-f9ea-6a10-a5b6-a195c0141ab4@gmx.de>
From: Eduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Message-ID: <a9759d3a-540e-ea5f-d08d-d3afdc72afde@measurement-factory.com>
Date: Fri, 07 Sep 2018 02:41:58 +0300
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
MIME-Version: 1.0
In-Reply-To: <afeb58fa-f9ea-6a10-a5b6-a195c0141ab4@gmx.de>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Content-Language: en-US
X-W3C-Hub-Spam-Status: No, score=-4.0
X-W3C-Hub-Spam-Report: AWL=-0.149, BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1fy3uv-0006Xj-6b 884e0de614fd098ff5801c1c02280791
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Weak validators in conditional requests
Archived-At: <https://www.w3.org/mid/a9759d3a-540e-ea5f-d08d-d3afdc72afde@measurement-factory.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/35890
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: <https://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Thanks, but 2616 changes mention only entity tags:
"Weak entity-tags are now allowed in all requests except range
requests.",
not considering If-Modified-Since, If-Unmodified-Since and
If-Range, I am concerned in.

Let's see an example: a proxy cached a response,
having two headers below:

[...]
Date: Tue, 15 Aug 2018 12:36:57 GMT
Last-Modified: Tue, 15 Aug 2018 12:36:27 GMT
[...]

According to https://tools.ietf.org/html/rfc7232#section-2.2.2,
we would need to use weak validator for Last-Modified
time, since the difference between these two fields
is less than 60 seconds.

Some time later, a client requests this cached resource
with a range GET request:

[...]
If-Unmodified-Since: Tue, 15 Aug 2016 12:36:27 GMT
Range: bytes=0-5
[...]

Can the proxy respond with 206 answer?
If no, are there any MUSTs in HTTPbis, prohibiting this?


On 04.09.2018 15:40, Julian Reschke wrote:
> On 9/4/2018 1:09 PM, Eduard Bagdasaryan wrote:
>> Yes, it is stated there, but only about If-Match and If-None-Match
>> headers. What about If-Modified-Since, If-Unmodified-Since
>> and If-Range?
>> ...
>
> See 
> <https://greenbytes.de/tech/webdav/rfc7232.html#changes.from.rfc.2616> 
> - so this was an intentional change.
>
> Best regards, Julian