Tal Dayan wrote:

> The Tomcat 3.2 standalone does not seem to support http status code 304
> ('if-modified-since', code SC_NOT_MODIFIED) and is always sending back the
> entire file, even it has not been modified.
>
> Is it going to be supported by versions '3.3' or 4.0 ?
>

Tomcat 4.0 *does* support 304 (HttpServletResponse.SC_NOT_MODIFIED) when
serving static resources.  It compares the file's last modified date to the
"Date" header included in the request, and returns 304 if appropriate.


>
> Should I file a request for it in the bug system ?
>

For responses generated by any other servlet, it is totally up to the servlet
-- not the container -- to decide when to send a 304.  This makes sense when
you remember that the container has absolutely no way to know if the page that
would be created by your servlet, this time, will change or not.  You can
either make this determiniation yourself and send the correct headers, or
implement the HttpServletRequest.getLastModified() method and HttpServlet will
do it for you.


>
> Thanks,
>
> Tal
>

Craig McClanahan



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

Reply via email to