tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Schönhaber <mailing-tomcat-u...@schoenhaber.de>
Subject Re: HTTP 304 - IF_MODIFIED_SINCE
Date Tue, 05 Sep 2006 11:24:23 GMT
ben short wrote:
> I have tried with firefox and ie6. May i ask what you are using?

Firefox.
May I ask what you are using (i. e. Tomcat version)?

You didn't answer my question: Does your browser send an If-Modified-Since 
Request-Header?

On Tomcat 5.5.17 calling this JSP *twice* will cause IE 6 and FF 1.5.0.6 to 
send an If-Modified-Since header line on the second attempt. And the JSP will 
display it.

---------- snip ----------

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8" session="false" import="java.util.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Request Headers</title>
    </head>
    <body>
        <h1>Request Headers</h1>
        <table>
            <tr>
                <th>Header Name</th><th>Header Value</th>
            </tr>
            <%
                response.addDateHeader("Last-Modified", new Date().getTime());
                for(Enumeration headerNames = request.getHeaderNames(); 
headerNames.hasMoreElements();)
                {
                    String headerName = (String) headerNames.nextElement();
                    String headerValue = request.getHeader(headerName);
            %>
            <tr>
                <td><%= headerName %></td>
                <td><%= headerValue %></td>
            </tr>
            <%
                }
            %>
        </table>
    </body>
</html>

---------- snap ----------

Regards
  mks

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message