File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes getLastModified(..) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "getLastModified(..)" Watch "getLastModified(..)" New topic


Dave Wingate
Ranch Hand

Joined: Mar 26, 2002
Posts: 262
I was wondering if someone could please help me understand the intended use of the getLastModified(..) method in HttpServlet as it relates to caching.

How does the value returned by getLastModified(..) inform HTTP caching if my servlet should or should not be delivered from cache?

Fun programming etcetera!
Dave Wingate
Ranch Hand

Joined: Mar 26, 2002
Posts: 262
Should have googled more thoroughly before I posted:

mea culpa mea culpa
I agree. Here's the link:
subject: getLastModified(..)
Similar Threads
spec gotcha
Page not getting Expired after click of back button
getLastModified() not working in JSP
how to use getLastModified( HttpServletRequest ) in JSP ?
JSP Caching in Tomcat