Re: Until HTTP header when the representation will disappear in the future

Amos Jeffries <squid3@treenet.co.nz> Wed, 12 June 2013 10:24 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 C723421F9A34 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 12 Jun 2013 03:24:53 -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 b3DhtOZ-iabR for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 12 Jun 2013 03:24:47 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id B64C921F9ADE for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 12 Jun 2013 03:24:41 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UmiCX-0006uf-Gn for ietf-http-wg-dist@listhub.w3.org; Wed, 12 Jun 2013 10:22:49 +0000
Resent-Date: Wed, 12 Jun 2013 10:22:49 +0000
Resent-Message-Id: <E1UmiCX-0006uf-Gn@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1UmiCK-0006l9-0K for ietf-http-wg@listhub.w3.org; Wed, 12 Jun 2013 10:22:36 +0000
Received: from ip-58-28-153-233.static-xdsl.xnet.co.nz ([58.28.153.233] helo=treenet.co.nz) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1UmiCI-0004bl-PA for ietf-http-wg@w3.org; Wed, 12 Jun 2013 10:22:35 +0000
Received: from [192.168.2.6] (103-9-43-156.flip.co.nz [103.9.43.156]) by treenet.co.nz (Postfix) with ESMTP id AFA54E704D; Wed, 12 Jun 2013 22:22:09 +1200 (NZST)
Message-ID: <51B84BCD.7030003@treenet.co.nz>
Date: Wed, 12 Jun 2013 22:22:05 +1200
From: Amos Jeffries <squid3@treenet.co.nz>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6
MIME-Version: 1.0
To: Karl Dubost <karl@la-grange.net>
CC: ietf-http-wg@w3.org
References: <DEB16694-3DE0-41D8-9512-5C722DE4D246@la-grange.net> <51B81F68.4090500@treenet.co.nz> <59A04C45-BC48-43F4-BC42-1B8AF16A32A5@la-grange.net>
In-Reply-To: <59A04C45-BC48-43F4-BC42-1B8AF16A32A5@la-grange.net>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=58.28.153.233; envelope-from=squid3@treenet.co.nz; helo=treenet.co.nz
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-3.449, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1UmiCI-0004bl-PA 86374e8ffdfdfe19abe3a756ed07001d
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Until HTTP header when the representation will disappear in the future
Archived-At: <http://www.w3.org/mid/51B84BCD.7030003@treenet.co.nz>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/18220
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 12/06/2013 8:02 p.m., Karl Dubost wrote:
> Amos Jeffries [2013-06-12T16:12]:
>> A combination of Expires (and/or max-age=N) and Cache-Control:must-revalidate serve this purpose.
>
> Example:
>
> HTTP BIS semantics spec, in the content has a "Expires: August 27, 2013"
> http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-22
>
> But if I do:
>
> → http HEAD http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-22
>
> HTTP/1.1 200 OK
> Accept-Ranges: bytes
> Content-Encoding: gzip
> Content-Location: draft-ietf-httpbis-p2-semantics-22.html
> Content-Type: text/html; charset=UTF-8
> Date: Wed, 12 Jun 2013 07:55:45 GMT
> ETag: "186e6bd-4b989-4dbc6c4497a80;4def056fb837d"
> Last-Modified: Fri, 03 May 2013 02:04:10 GMT
> Server: Apache/2.2.22 (Debian)
> TCN: choice
> Vary: negotiate,Accept-Encoding
>
>
> And the spec
> Hypertext Transfer Protocol (HTTP/1.1): Caching
> http://tools.ietf.org/html/draft-ietf-httpbis-p6-cache-22#section-7.3
> says about Expires.
>
>
>     The "Expires" header field gives the date/time after which the
>     response is considered stale.  See Section 4.1 for further discussion
>     of the freshness model.
>
>     The presence of an Expires field does not imply that the original
>     resource will change or cease to exist at, before, or after that
>     time.
>
>
> It doesn't have the same semantics. Caching vs Information on the representation.

The use-cases you presented for the new header from DRM to legality to 
maintenance downtime were all about what gets delivered (representation 
/ cached copy). Not meta data describing the contents. And images do 
have embeded meta data.

Notice that what I posted was not *only* Expires. It was a combination 
of Expires plus must-revalidate. Expires which flags a timestamp where 
*something* is supposed to have happened to the resource (without saying 
what). The addition of must-revalidate forces a check with the origin 
after that timestamp, which causes all the agents to fetch whatever you 
turn the resource into in that new time bracket (that 410 gone or whatever).

What use is a new header if it is going to take time to roll out, 
duplicates existing capabilities, and will probably act as a source for 
contradictory input to HTTP implementations? (ie invalid at timestamp V, 
Expires at timestamp V+M, may be served stale until V+M+N with arbitrary 
values for V, M, and N being added and removed at it transits the network)

>    Just asking maybe HTTP is not the right place to express it, though in case of an image it is difficult to do without HTTP.

Amos