Re: draft-ietf-httpbis-digest-headers: Digests and Conditional Requests

Julian Reschke <> Thu, 09 July 2020 06:05 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id B79A33A0FAA for <>; Wed, 8 Jul 2020 23:05:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -2.649
X-Spam-Status: No, score=-2.649 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: (amavisd-new); dkim=pass (1024-bit key)
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id EITZ268vq_BM for <>; Wed, 8 Jul 2020 23:05:31 -0700 (PDT)
Received: from ( []) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by (Postfix) with ESMTPS id 1C3813A0FA9 for <>; Wed, 8 Jul 2020 23:05:30 -0700 (PDT)
Received: from lists by with local (Exim 4.92) (envelope-from <>) id 1jtPcx-0002tq-1F for; Thu, 09 Jul 2020 06:01:47 +0000
Resent-Date: Thu, 09 Jul 2020 06:01:47 +0000
Resent-Message-Id: <>
Received: from ([]) by with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <>) id 1jtPcv-0002t5-U2 for; Thu, 09 Jul 2020 06:01:45 +0000
Received: from ([]) by with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <>) id 1jtPcu-00054s-7S for; Thu, 09 Jul 2020 06:01:45 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;; s=badeba3b8450; t=1594274488; bh=vRpaYag4BsKLNp3UTprGlW4MtLrlGhuIh8Pn3xwlY3A=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=Z9lVOJISA/1Ts8wRYnndIdAsnPdAdqSpbnMf0SYVLy9M0pNBUrUhocwqUxEnNlP/o YgbTgyh84W4X7w0C3FTYQhWy4RcysEIeuK5bskh/RBrshAgmGcORrDeP7INXxS30P9 iusbkdDAEb5pCDMAQmWRh4k139G7NsvVdRFj4Cv8=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [] ([]) by (mrgmx105 []) with ESMTPSA (Nemesis) id 1MZCbB-1kOVHl37MP-00V7Dj; Thu, 09 Jul 2020 08:01:28 +0200
To: Mark Nottingham <>
Cc: HTTP Working Group <>
References: <> <> <> <>
From: Julian Reschke <>
Message-ID: <>
Date: Thu, 9 Jul 2020 08:01:28 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0
MIME-Version: 1.0
In-Reply-To: <>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:JroQxcDrH7apZ7SKrU3YVjHgAaU0cTGEM199IrB21/A8WC/KS/7 KsFKuy4VYOMT7i4QNTBktG5DAuYRfQzJKAuilGYtmqoNwZ+IGPRA28/Hs+/qvtqNomc3A1C OwQpyP/hfZTYOaKvx4iR1eoPjJqe+AtPfZYNel2q5wX/Xm6xWmLPhmX8xAv6ny774XMwn0V jiVnMoEHXFULtB1oNr4BQ==
X-UI-Out-Filterresults: notjunk:1;V03:K0:2vrztwmCr+o=:6S3q1n3DBRVIwQ28bK3oGa 9vlO2zwraqvJpqoFc3krWLsSPgPylpCJOD57Ncq+y43G6O8J4Po+lfJ76l6YDuEsY0VpKwMXU lbkZ6sBqbyx3j9ZQx5JIwodlOUpltefYwkFYYef2h/PxLFHxoBwa2h1VkBW8c+nrIeKqA5V2J LnvBx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LMJG03kI405/PObVZqoRfXyg8 FcONIrTYzDUr3H+0l+I4EoBmgdN0O8dq9i6Q6Rw==
Received-SPF: pass client-ip=;;
X-W3C-Hub-Spam-Status: No, score=-5.6
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: 1jtPcu-00054s-7S a80f7bfb820d8eeaa940ff613e9982f7
Subject: Re: draft-ietf-httpbis-digest-headers: Digests and Conditional Requests
Archived-At: <>
X-Mailing-List: <> archive/latest/37861
Precedence: list
List-Id: <>
List-Help: <>
List-Post: <>
List-Unsubscribe: <>

On 09.07.2020 07:27, Mark Nottingham wrote:
>> On 8 Jul 2020, at 6:28 pm, Julian Reschke <> wrote:
>> ...already covered by "If". I would prefer using something that is
>> already defined, instead of having to mint two more header fields (we'd
>> need both "If-Hash" and "If-Not-Hash", right?).
> The problem is that it's not obvious what parts of If will need to be implemented to interoperate for a particular use case; will they need to support entity-tags too? What about Resource-Tags? The ability to put lists of conditions with varying aspects? Different URI schemes? It's actually a quite complex mechanism.

The answer to all of these is "yes", except for URI schemes. It's up to
the server to decide which URI schemes to support for state tokens. "ni"
is special here because there would need to be an out-of-band signal
that the server does these. (For WebDAV, that could be in OPTIONS).

It is more complex, but then having multiple conditional header fields
is complex, too.

> To me, it's much more straightforward to define a new header (or headers) to meet the use case in hand, with some modest affordance for extensibility. It would also remove the need to mint yet another customer parser if Structured Fields were used.

Defining a generic conditional header field using SH syntax would
certainly be interesting, yes.

Best regards, Julian