This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

remove the data from cache

 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am getting the data in jsp page when i click on any hyperlink in my jsp page.Even that the data does not exits .For this i put theses line in the top of my jsp.

But still i am getting same problem.
Can any body tell me where i am wrong.

<%
response.setHeader("Cache-Control","private");
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", -1); //prevents caching at the proxy server
%>
 
Keerthi Sagar
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Pankaj,
Try to set OFF the AUTOCOMPLETE feature for the form, like;

<form AUTOCOMPLETE="OFF">
-----------
-----------
-------
</form>

Regards,
Y. Keerthi Sagar.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic