This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
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
Joined: Jan 26, 2005
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.