• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to disable caching in JSP?  RSS feed

 
honey singh
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm working on application in JSP...now when ever the user on the browser requests the information from the webserver then he gets that..but when he updates some information to the server and returns to the previous page to see the upadtion he gets the previous old data prior to updation..its only after manually refreshing the page from browser's button he can view the real data after updation...so please can u tell me the way of automatically refreshing the pages...so that whenever user goes to the page to see the updation..he doesn't see the old data but the new data...
I hope I had made myself clear..
thanx in advance
 
chanoch wiggers
Author
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 0); //prevents caching at the proxy server
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!