so this #345 bug fix which sends date in the header in the HTTP
response. Is there any use to this date at all ?
-----Original Message-----
From: Justin Erenkrantz [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 20, 2001 11:27 AM
To: [EMAIL PROTECTED]
Subject: Re: Patch to bug #345 complete ?
On Mon, Aug 20, 2001 at 10:54:43AM -0700, Craig R. McClanahan wrote:
> I'm not sure I would make quite so blanket a statement as that. If the
> servlet itself understands that the content it produces changes rarely, it
> can improve performance by respecting If-Modified-Since values. To make
> this worthwhile, though, it will also need to control the value sent for
> the "Last-Modified" header, which you can do by overriding the
> getLastModified() method of HttpServlet.
True - you are correct. But, this wouldn't be something that Tomcat
could do by default - this would require that the servlet itself
handle this and have appropriate logic via getLastModified().
The servlet can handle it, but that's user code not Tomcat code.
-- justin