You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Graham Leggett <mi...@sharp.fm> on 2002/04/14 21:44:37 UTC

Protocol question: 304 and content-length

Hi all,

Someone posted a bug report in bugzilla claiming that they were having
problems with an IIS v4.0 server returning blank pages through an Apache
proxy. They posted a trace of the request, and this is what the IIS
server said in response to a conditional request (If-None-Match):

HTTP/1.1
304 Not Modified
Server: Microsoft-IIS/4.0 
Date: Thu, 04 Apr 2002 16:05:15 GMT
Content-Location: http://www.dreo.dnd.ca/index.html 
ETag: "c077721eaf49c01:1364"
Content-Length: 0

The above response includes a content-length of zero. RFC2616 10.3.5
says that the cache MUST update the entry with the field values in the
response.

ie: The content-length just forced the cached file to be of zero length.

Looks like a bug in IIS to me - can anyone else confirm this?

Regards,
Graham
-- 
-----------------------------------------
minfrin@sharp.fm		"There's a moon
					over Bourbon Street
						tonight..."

Re: Protocol question: 304 and content-length

Posted by Graham Leggett <mi...@sharp.fm>.
Graham Leggett wrote:

> HTTP/1.1
> 304 Not Modified
> Server: Microsoft-IIS/4.0
> Date: Thu, 04 Apr 2002 16:05:15 GMT
> Content-Location: http://www.dreo.dnd.ca/index.html
> ETag: "c077721eaf49c01:1364"
> 
> The above response includes a content-length of zero.

Or would have if I cut-and-pasted correctly:

HTTP/1.1
304 Not Modified
Server: Microsoft-IIS/4.0 
Date: Thu, 04 Apr 2002 16:05:15 GMT
Content-Location: http://www.dreo.dnd.ca/index.html 
ETag: "c077721eaf49c01:1364"
Content-Length: 0

Regards,
Graham
-- 
-----------------------------------------
minfrin@sharp.fm		"There's a moon
					over Bourbon Street
						tonight..."

RE: Protocol question: 304 and content-length

Posted by Ryan Bloom <rb...@covalent.net>.
According to the spec, IIS is incorrect, and we have done the correct
thing.

Ryan

> Someone posted a bug report in bugzilla claiming that they were having
> problems with an IIS v4.0 server returning blank pages through an
Apache
> proxy. They posted a trace of the request, and this is what the IIS
> server said in response to a conditional request (If-None-Match):
> 
> HTTP/1.1
> 304 Not Modified
> Server: Microsoft-IIS/4.0
> Date: Thu, 04 Apr 2002 16:05:15 GMT
> Content-Location: http://www.dreo.dnd.ca/index.html
> ETag: "c077721eaf49c01:1364"
> Content-Length: 0
> 
> The above response includes a content-length of zero. RFC2616 10.3.5
> says that the cache MUST update the entry with the field values in the
> response.
> 
> ie: The content-length just forced the cached file to be of zero
length.
> 
> Looks like a bug in IIS to me - can anyone else confirm this?
> 
> Regards,
> Graham
> --
> -----------------------------------------
> minfrin@sharp.fm		"There's a moon
> 					over Bourbon Street
> 						tonight..."