I am trying to clear cache using servlets, to prevent duplicate records getting inserted. My servlets has some header variable information relating to username. I am trying to clear the cache by using: response.setHeader("Pragma", "No-cache"); response.setHeader("Cache-Control", "no-cache"); response.setDateHeader("Expires", 1); But, this doesnt seem to work. Can anybody please help.
Thanks [ February 08, 2006: Message edited by: ford Darcy Jr ]
There is no way for a response to tell the browser to clear its cache. That is completely under user control.
ford Darcy Jr
Ranch Hand
Joined: Jan 26, 2005
Posts: 76
posted
0
Hi,
Clearing cache using the response.setHeader("cache", "no-cache"), works fine on tomcat, but doesnt work when moved to weblogic server. Any idea what needs to be used on weblogic server for clearing cache to work.