• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP browser cache issue  RSS feed

 
Ilyas Ahamed
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you try clearing cache in your browser and then call your second url so that we know it really is caching problem.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!