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

Karl Dubost <karl@la-grange.net> Wed, 12 June 2013 08:05 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 067B721F9BFD for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 12 Jun 2013 01:05:34 -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 T2C2TSmu7fT1 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 12 Jun 2013 01:05:29 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id BC94B21F9BF9 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 12 Jun 2013 01:05:28 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Umg2p-0004Tb-A8 for ietf-http-wg-dist@listhub.w3.org; Wed, 12 Jun 2013 08:04:39 +0000
Resent-Date: Wed, 12 Jun 2013 08:04:39 +0000
Resent-Message-Id: <E1Umg2p-0004Tb-A8@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <karl@la-grange.net>) id 1Umg2Z-0004Sj-9r for ietf-http-wg@listhub.w3.org; Wed, 12 Jun 2013 08:04:23 +0000
Received: from nerval.la-grange.net ([128.30.54.58]) by lisa.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <karl@la-grange.net>) id 1Umg2Y-0006di-5d for ietf-http-wg@w3.org; Wed, 12 Jun 2013 08:04:23 +0000
Received: from [127.0.0.1] (nerval.la-grange.net [128.30.54.58]) by nerval.la-grange.net (8.14.5/8.14.5) with ESMTP id r5C7x3NA074955; Wed, 12 Jun 2013 03:59:05 -0400 (EDT) (envelope-from karl@la-grange.net)
References: <DEB16694-3DE0-41D8-9512-5C722DE4D246@la-grange.net> <51B81F68.4090500@treenet.co.nz>
In-Reply-To: <51B81F68.4090500@treenet.co.nz>
Mime-Version: 1.0 (Apple Message framework v1283)
Content-Type: text/plain; charset="utf-8"
Message-Id: <59A04C45-BC48-43F4-BC42-1B8AF16A32A5@la-grange.net>
Content-Transfer-Encoding: quoted-printable
Cc: ietf-http-wg@w3.org
From: Karl Dubost <karl@la-grange.net>
Date: Wed, 12 Jun 2013 17:02:35 +0900
To: Amos Jeffries <squid3@treenet.co.nz>
X-Mailer: Apple Mail (2.1283)
X-W3C-Hub-Spam-Status: No, score=-4.9
X-W3C-Hub-Spam-Report: ALL_TRUSTED=-1, AWL=-1.870, BAYES_00=-1.9, RP_MATCHES_RCVD=-0.173
X-W3C-Scan-Sig: lisa.w3.org 1Umg2Y-0006di-5d 56d682a40966d79d1647ee5f57da9bd7
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/59A04C45-BC48-43F4-BC42-1B8AF16A32A5@la-grange.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/18218
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>

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


-- 
Karl Dubost
http://www.la-grange.net/karl/