aspose file tools*
The moose likes JSP and the fly likes JSP browser cache issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP browser cache issue" Watch "JSP browser cache issue" New topic
Author

JSP browser cache issue

Ilyas Ahamed
Greenhorn

Joined: Oct 08, 2012
Posts: 2
I have 2 urls:

http://../page1.jsp?param1=ss
http://../page1.jsp?param1=aa

I access the first url: http://../page1.jsp?param1=ss and did some operations and got the result page.

The issue is when I access the second url: http://../page1.jsp?param1=aa, it is showing the first url's result page.


Tried adding:
<%
response.setHeader(“Cache-Control“,”no-store”);
response.setHeader(“Pragma\“,”no-cache”);
response.setDateHeader (“Expires“, 0);
//prevents caching at the proxy server
%>

Pongsakorn Semsuwan
Ranch Hand

Joined: May 15, 2011
Posts: 34

Have you try clearing cache in your browser and then call your second url so that we know it really is caching problem.


A web application developer wannabe from Thailand
My StartUp : http://www.dreamlog.co
Blog : http://pongsakornsemsuwan.wordpress.com
 
 
subject: JSP browser cache issue