Last-Modified header in 304 and 206 responses

Zhong Yu <zhong.j.yu@gmail.com> Fri, 06 April 2012 23:30 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 7C9EF21F8507 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 6 Apr 2012 16:30:55 -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 X2WOusCGOSPg for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 6 Apr 2012 16:30:54 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id B6DC421F8504 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 6 Apr 2012 16:30:54 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.69) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1SGIaN-0006nf-Sl for ietf-http-wg-dist@listhub.w3.org; Fri, 06 Apr 2012 23:28:55 +0000
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.69) (envelope-from <zhong.j.yu@gmail.com>) id 1SGIaC-0006kl-5m for ietf-http-wg@listhub.w3.org; Fri, 06 Apr 2012 23:28:44 +0000
Received: from mail-vx0-f171.google.com ([209.85.220.171]) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <zhong.j.yu@gmail.com>) id 1SGIa8-0002JR-Uu for ietf-http-wg@w3.org; Fri, 06 Apr 2012 23:28:42 +0000
Received: by vcbfl15 with SMTP id fl15so1301801vcb.2 for <ietf-http-wg@w3.org>; Fri, 06 Apr 2012 16:28:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=kNeg5zm7CKPrAEX1Xz/Xnfps8EqJdx24VumDR+QFkVk=; b=DWwU0ILlBG+hwe+ovVwuMd7VscdxoDQWmK0BqZf+imYKylNHWlIN7sIkNEHvX8ZU4d lVftjQDLz0JF+LImBG5PVZ+B75FkB/c69DIIMBC/e3RVwFkBGrxaCe0eJXzk403GZA1Z Ky9g7ROGDiK+AoArv8IgGNKH2umhAQvmJLYciODRtYWgTQe1p0Nx/cNqd/BCkzwR57lM GGNAX7FfJ47ZksjcQATVL7wfXosnB3Wnn4SNtOXJJuYbtgJan6SI5jC8fOxDSaOiHgd4 dwmixIpwfy5L5QemEqDyxiOhN65TgAbcPv58TKhMDumDyf29uKkgCpPbUvDlEiCyxaW0 qwRA==
MIME-Version: 1.0
Received: by 10.220.155.7 with SMTP id q7mr767779vcw.71.1333754895355; Fri, 06 Apr 2012 16:28:15 -0700 (PDT)
Received: by 10.220.110.208 with HTTP; Fri, 6 Apr 2012 16:28:15 -0700 (PDT)
Date: Fri, 06 Apr 2012 18:28:15 -0500
Message-ID: <CACuKZqE5KDyk1soOfb_BrYgWF-gmQZzsu0dg2iV6KW2VtoW5fw@mail.gmail.com>
From: Zhong Yu <zhong.j.yu@gmail.com>
To: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="ISO-8859-1"
Received-SPF: pass client-ip=209.85.220.171; envelope-from=zhong.j.yu@gmail.com; helo=mail-vx0-f171.google.com
X-W3C-Hub-Spam-Status: No, score=-2.7
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1SGIa8-0002JR-Uu 00089f7cdb1623480df9d7a4b45747e4
X-Original-To: ietf-http-wg@w3.org
Subject: Last-Modified header in 304 and 206 responses
Archived-At: <http://www.w3.org/mid/CACuKZqE5KDyk1soOfb_BrYgWF-gmQZzsu0dg2iV6KW2VtoW5fw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/13382
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>
Resent-Message-Id: <E1SGIaN-0006nf-Sl@frink.w3.org>
Resent-Date: Fri, 06 Apr 2012 23:28:55 +0000

In RFC2616, Last-Modified header was not allowed in 304 and 206(to an
If-Range request)

  http://tools.ietf.org/html/rfc2616#section-10.3.5
  http://tools.ietf.org/html/rfc2616#section-10.2.7

In draft 19, Last-Modified is allowed/required in 206/If-Range, but
still forbidden in 304

  http://tools.ietf.org/html/draft-ietf-httpbis-p4-conditional-19#section-4.1
  http://tools.ietf.org/html/draft-ietf-httpbis-p5-range-19#section-3.1

Any reason for the asymmetry?

Furthermore, why must we exclude other entity headers in 304 and
206/If-Range? There are only 3 of them: Content-Encoding,
Content-Language, Content-Type. They can't have any meaningful impact
on performance if they are included in the response. Do they really
deserve a "SHOULD NOT be included"?

Zhong Yu