dcsimg
how to disable caching in client browser using JSP?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Harmanjeet_Lubana
Posted On:   Thursday, July 11, 2002 08:13 AM

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

Re: how to disable caching in client browser using JSP?

Posted By:   shimon_koifman  
Posted On:   Thursday, July 11, 2002 08:30 AM

Write this code in your JSP:

response.setHeader("Expires","0");
response.setHeader("Pragma", "no-cache");
response.setHeader("Cache-Control", "no-store,no-cache");
About | Sitemap | Contact