• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Removing cache data

 
Jack, jill
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Can U please tell me how to refresh a page in JSP or servlet( i.e removing cache data from the page).What tags should I use
Do reply
Bye
 
Anil Vupputuri
Ranch Hand
Posts: 527
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai,
U can use these headers of a response object depending upon HTTP protocol version ur using.
These are for Cache:
response.setHeader("pragma","no-cache");
response.setHeader("Cache-Control","no-cache");
response.setHeader("Cache-Control","no-store");
Put all the above statements to use irrespective of HTTP versions.
Anil.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic