Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

confused in using getLastmodified() of HttpServlet

 
PavanPL KalyanK
Ranch Hand
Posts: 212
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I heard that getLastmodified() of HttpServlet will improve performance as it caches the data .

I am confused in using this implementation .

On to my servlet i override the getLasModified and i am returning the File's lastmodifed date .

for using this facility do i need to explicitly set the requestheader for getLastmodified() ??

Please help

 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use it in the HEAD request.

Carefully read this article for explanation (not only the code, but also the text): http://balusc.blogspot.com/2009/02/fileservlet-supporting-resume-and.html
 
PavanPL KalyanK
Ranch Hand
Posts: 212
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good Article useful information . Thanks Bauke.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic