Shai Bentin wrote:

> I monitored the response I got from tomcat, it seems that it does not return
> a "Last-Modified" on it's http header. It also seems to ignore a request for
> something "newer than" using the "If-Modified-Since" Request header. Can any
> one shed some light on this? is there a special configuration in tomcat that
> makes it respond with complete headers, and makes tomcat respond to a
> "If-Modified-Since" request.?
>

Are the requests you are making for static resources or for dynamically created
output from servlets (or JSP pages)?

If the former, Tomcat's default file-serving mechanism will set the
Last-Modified header.  If the output is being generated by a servlet or JSP
page, though, it is totally up to the application to set whatever headers it
wants.  So, if you want to set a Last-Modified header, you must either do so
yourself or implement the HttpServlet.getLastModified() method.

>
> Shai
>

Craig McClanahan



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to