File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Setting response page expire time

 
pravin rane
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
i wanted to set the page expiry time such that for each request the client
browser request server to retrieve the page (now it returns the page which is cached by the browser). i wanted to force client browser to request the
server for each and every request page.

will you please let me know how to do this

thanks in advance.
 
Bosun Bello
Ranch Hand
Posts: 1510
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By setting an appropriate header on the response, you can instruct the browser not to cache the response.

response.setHeader("Cache-Control", "no-cache")
response.setHeader("Pragma", "no-cache")
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic