You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Axel Bartsch <ha...@yahoo.de> on 2005/11/10 11:54:18 UTC
http response 304 with content
I am testing with Apache 2.0.49 and tomcat 5.0.28
In my Ethereal Trace (Ethereal running on browser PC) (Tracer:browser client to server) I sometimes see HTTP/1.1 responses 304 (Not Modified).
A message body (content>0) is included in this response.
According to HTTP protocol a 304 response MUST NOT contain any content:
from HTTP/1.1 protocol (RFC 2616):
If the client has performed a conditional GET request and access is allowed, but the document has not been modified, the server SHOULD respond with this status code. The 304 response MUST NOT contain a message-body, and thus is always terminated by the first empty line after the header fields.
Why does this happen?
---------------------------------
Gesendet von Yahoo! Mail - Jetzt mit 1GB kostenlosem Speicher
Re: http response 304 with content
Posted by hallyday1999 <ha...@yahoo.de>.
Hello Mark,
Would a Ethereal trace be enough for you?
Mark Thomas <ma...@apache.org> schrieb:
hallyday1999 wrote:
> Hello Mark,
>
> Sorry, but the bug you quote mentions errors with the HTTP-response headers.
>
> My problem is an 304 response with sent content (=content-length >0):
> the content is e.g. the requested JPG file.
>
>
> kind regards
> Axel
Do you have a simple test case the reliably demonstrates this issue?
If so, create a bug report and attach it. Without a test case there
isn't much we can do.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------
Gesendet von Yahoo! Mail - Jetzt mit 1GB kostenlosem Speicher
Re: http response 304 with content
Posted by Mark Thomas <ma...@apache.org>.
hallyday1999 wrote:
> Hello Mark,
>
> Sorry, but the bug you quote mentions errors with the HTTP-response headers.
>
> My problem is an 304 response with sent content (=content-length >0):
> the content is e.g. the requested JPG file.
>
>
> kind regards
> Axel
Do you have a simple test case the reliably demonstrates this issue?
If so, create a bug report and attach it. Without a test case there
isn't much we can do.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: http response 304 with content
Posted by hallyday1999 <ha...@yahoo.de>.
Hello Mark,
Sorry, but the bug you quote mentions errors with the HTTP-response headers.
My problem is an 304 response with sent content (=content-length >0):
the content is e.g. the requested JPG file.
kind regards
Axel
Mark Thomas <ma...@apache.org> schrieb:
Axel Bartsch wrote:
> I am testing with Apache 2.0.49 and tomcat 5.0.28
>
> In my Ethereal Trace (Ethereal running on browser PC) (Tracer:browser client to server) I sometimes see HTTP/1.1 responses 304 (Not Modified).
> A message body (content>0) is included in this response.
>
> According to HTTP protocol a 304 response MUST NOT contain any content:
>
> from HTTP/1.1 protocol (RFC 2616):
> If the client has performed a conditional GET request and access is allowed, but the document has not been modified, the server SHOULD respond with this status code. The 304 response MUST NOT contain a message-body, and thus is always terminated by the first empty line after the header fields.
>
> Why does this happen?
This is a known issue. See
http://issues.apache.org/bugzilla/show_bug.cgi?id=13846
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------
Gesendet von Yahoo! Mail - Jetzt mit 1GB kostenlosem Speicher
Re: http response 304 with content
Posted by Mark Thomas <ma...@apache.org>.
Axel Bartsch wrote:
> I am testing with Apache 2.0.49 and tomcat 5.0.28
>
> In my Ethereal Trace (Ethereal running on browser PC) (Tracer:browser client to server) I sometimes see HTTP/1.1 responses 304 (Not Modified).
> A message body (content>0) is included in this response.
>
> According to HTTP protocol a 304 response MUST NOT contain any content:
>
> from HTTP/1.1 protocol (RFC 2616):
> If the client has performed a conditional GET request and access is allowed, but the document has not been modified, the server SHOULD respond with this status code. The 304 response MUST NOT contain a message-body, and thus is always terminated by the first empty line after the header fields.
>
> Why does this happen?
This is a known issue. See
http://issues.apache.org/bugzilla/show_bug.cgi?id=13846
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org