tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 38532] New: - Missing HTTP header "Content-Type" when response is 304, after a request with "If-Modified-Since"
Date Mon, 06 Feb 2006 15:58:10 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38532>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38532

           Summary: Missing HTTP header "Content-Type" when response is 304,
                    after a request with "If-Modified-Since"
           Product: Tomcat 5
           Version: 5.0.30
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: RFC
          Severity: normal
          Priority: P2
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: olivier.jaquemet@jalios.com


The "Content-Type" header is not returned by tomcat when accessing file that
have not changed since the last access.
To reproduce:
 - store a static file on server, say myfile.xls
 - access the file a first time (with IE), everthing work as expected, the
"Content-Type" is provided by Tomcat.
 - access the file a second time (with IE), IE provides a "If-Modified-Since"
header and Tomcat response is 304, as expected, but the "Content-Type" header is
missing and IE goes crazy. It works well with firefox 1.5 as it does not provide
the "If-Modified-Since".

The HTTP 1.1 RFC states:
"Any HTTP/1.1 message containing an entity-body SHOULD include a Content-Type
header[...]", a 304 response is not an entity-body.. therefore it does not
really violate any RFC, but it is not the behavior expected by the (current)
main browser IE... 
http://www.w3.org/Protocols/rfc2616/rfc2616-sec7.html#sec7.2.1

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message