wood burning stoves 2.0*
The moose likes JSP and the fly likes remove the data from cache Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "remove the data from cache" Watch "remove the data from cache" New topic
Author

remove the data from cache

pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 300
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

Joined: Apr 21, 2007
Posts: 28
Hi Pankaj,
Try to set OFF the AUTOCOMPLETE feature for the form, like;

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

Regards,
Y. Keerthi Sagar.
 
Consider Paul's rocket mass heater.
 
subject: remove the data from cache
 
Similar Threads
How to control Caching in JBoss
Cache Control
Cache Problem in Browser -Firefox
Problem with exporting data from JSP to excel sheet
clear cache servlet