Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "getLastModified(..)" Watch "getLastModified(..)" New topic
Author

getLastModified(..)

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:

http://www.coderanch.com/t/166396/java-Web-Component-SCWCD/certification/HttpServlet-getLastModified

mea culpa mea culpa
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: getLastModified(..)
 
Similar Threads
getLastModified() not working in JSP
spec gotcha
JSP Caching in Tomcat
how to use getLastModified( HttpServletRequest ) in JSP ?
Page not getting Expired after click of back button