Project

General

Profile

Actions

Bug #116

closed

Last-Modified header not sent with Range request response

Added by Anonymous almost 19 years ago. Updated over 17 years ago.

Status:
Fixed
Priority:
Normal
Category:
core
Target version:
-
ASK QUESTIONS IN Forums:

Description

According to RFC2616, HTTP/1.1 servers SHOULD send Last-Modified whenever feasible.
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.29

Apache appears to send this header for static files even when responding to a range request.

In the absence of this header, services like CoBlitz can not make good decisions about how long to cache the partial responses.

-- sit

Actions #1

Updated by Anonymous almost 19 years ago

An example command to test for this output:


$ curl -I -H 'Range: bytes=1-2' http://lighttpd.net/download/lighttpd-1.3.13.tar.gz
HTTP/1.1 206 Partial Content
Date: Fri, 06 May 2005 17:29:59 GMT
Content-Length: 2
ETag: 1443640654
Accept-Ranges: bytes
Content-Type: application/x-tgz
Content-Range: bytes 1-2/680068
Server: lighttpd/1.3.13

-- sit

Actions #2

Updated by moo about 18 years ago

  • Status changed from New to Fixed
  • Resolution set to fixed

curl -I -H 'Range: bytes=1-2' http://lighttpd.net/download/lighttpd-1.3.13.tar.gz
HTTP/1.1 206 Partial Content
Content-Type: application/x-tgz
ETag: "1443640654" 
Accept-Ranges: bytes
Last-Modified: Sun, 06 Mar 2005 12:00:21 GMT
Content-Range: bytes 1-2/680068
Content-Length: 2
Date: Tue, 28 Mar 2006 03:27:49 GMT
Server: lighttpd/1.4.11

seems have been fixed.

Actions

Also available in: Atom