Re: WGLC p6 4.2.1

Fabian Keil <freebsd-listen@fabiankeil.de> Mon, 18 March 2013 13:18 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 (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3EBA521F89E1 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 18 Mar 2013 06:18:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level:
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2KwBXPdGRhNG for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 18 Mar 2013 06:18:57 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 4F3E721F8A3F for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 18 Mar 2013 06:18:57 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UHZx8-0001cE-VY for ietf-http-wg-dist@listhub.w3.org; Mon, 18 Mar 2013 13:18:15 +0000
Resent-Date: Mon, 18 Mar 2013 13:18:14 +0000
Resent-Message-Id: <E1UHZx8-0001cE-VY@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <freebsd-listen@fabiankeil.de>) id 1UHZwx-0001ay-JT for ietf-http-wg@listhub.w3.org; Mon, 18 Mar 2013 13:18:03 +0000
Received: from smtprelay01.ispgateway.de ([80.67.29.23]) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <freebsd-listen@fabiankeil.de>) id 1UHZwr-0004nL-T9 for ietf-http-wg@w3.org; Mon, 18 Mar 2013 13:18:03 +0000
Received: from [78.35.137.117] (helo=fabiankeil.de) by smtprelay01.ispgateway.de with esmtpsa (SSLv3:AES128-SHA:128) (Exim 4.68) (envelope-from <freebsd-listen@fabiankeil.de>) id 1UHZwW-0008Do-5X for ietf-http-wg@w3.org; Mon, 18 Mar 2013 14:17:36 +0100
Date: Mon, 18 Mar 2013 14:17:27 +0100
From: Fabian Keil <freebsd-listen@fabiankeil.de>
To: ietf-http-wg@w3.org
Message-ID: <20130318141727.03ed374c@fabiankeil.de>
In-Reply-To: <em2c99bf04-f567-48b2-b6c9-34d6777aad66@bombed>
References: <35932.1363608311@critter.freebsd.dk> <em2c99bf04-f567-48b2-b6c9-34d6777aad66@bombed>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg="PGP-SHA1"; boundary="Sig_/VCsNo1wjbQSer5vEZJDAZ7x"; protocol="application/pgp-signature"
X-Df-Sender: Nzc1MDY3
Received-SPF: none client-ip=80.67.29.23; envelope-from=freebsd-listen@fabiankeil.de; helo=smtprelay01.ispgateway.de
X-W3C-Hub-Spam-Status: No, score=-1.9
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1UHZwr-0004nL-T9 31cc63554ab30e4141f82030ae58ee9a
X-Original-To: ietf-http-wg@w3.org
Subject: Re: WGLC p6 4.2.1
Archived-At: <http://www.w3.org/mid/20130318141727.03ed374c@fabiankeil.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/17059
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>

"Adrien W. de Croy" <adrien@qbik.com> wrote:
 
> From: "Poul-Henning Kamp" <phk@phk.freebsd.dk>

> >In message <em94119d23-43b0-4de4-a3e3-8c30e8a40bfc@bombed>, "Adrien W. 
> >de Croy" writes:
> >
> >>>>for instance a cache receiving a request with If-Modified-Since 
> >>>>later
> >>>>than its own Last-Modified, may presume the client has a later 
> >>>>copy,=20
> >>>>and
> >>>>discard its own copy.
> >>>
> >>>Uhm, so you're saying I can clean the entire cache with bogos IMS
> >>>requests ?
> >>
> >>that's not the point.
> >
> >It very much is: A cache would have to be stupid to make that
> >assumption, and we should not be protecting stupid mistakes with
> >the specification, we should make things work.
> it was just one example.  There are potentially limitless ones.
> 
> fundamentally, we're changing the semantics.
> 
> Do we even know what that may break?

Privoxy has supported modifying the If-Modified-Since and
Last-Modified dates for years to make using them as cookies
less convenient:
http://www.privoxy.org/user-manual/actions-file.html#HIDE-IF-MODIFIED-SINCE
http://www.privoxy.org/user-manual/actions-file.html#OVERWRITE-LAST-MODIFIED

As far as I know this didn't break anything except for the
user tracking (provided no additional tricks are used).

Modifying the If-Modified-Since date comes with the risk of ending up
with a stale copy, but if the modification range is small it's usually
not a problem.

> >No matter what you write in the specification, you will have IMS
> >headers with non-server-supplied timestamps, because it is possible
> >and there are legitimate use-cases.
> I agree it's possible, I'm not sure about the use-cases. at least not 
> the one you mentioned before.
> 
> Sending If-Modified-Since currently indicates you have a copy.  So we're 
> looking to break that too?

In my opinion it only indicates that you don't want a copy
if it isn't more recent than the given date.

RFC 2616 14.25 even allows sending an arbitrary date ...

> >We can discuss if the text expresses this optimally, but there is
> >no way the text can put this particular genie back in his bottle.  
> I think we will need to make further changes, to refer to these changes 
> elsewhere in the spec, e.g. where it's discussed that to make a 
> conditional request one adds If-Modified-Since using the content of a 
> previous Last-Modified response header.

My interpretation of "4.2. Validation Model" is that it's only
relevant for certain conditional requests and thus doesn't prohibit
sending other dates for other conditional requests.

Fabian