On Mon, 20 Aug 2001, Justin Erenkrantz wrote:
> 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.
Agreed.
On my earlier statement, I should have pointed out that the automatic
handling Tomcat 4 does is when serving static resources only.
> -- justin
>
>
Craig