File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes browser is not cached Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "browser is not cached" Watch "browser is not cached" New topic
Author

browser is not cached

biswajit ray
Ranch Hand

Joined: Nov 30, 2005
Posts: 30
hi guys,

i have problem that is when i m logging out from my application i invalidate the session . but if i click on the browse back button then it is going to the previous page. i also even tried by writing the code

<%
// issue HTTP directives such that this page is not cached
response.setHeader("Pragma", "no-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 0);
%> in my jsp page but it is not working. please help me in ths reagrd it is urgent.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39535
    
  27
What the back button does is up to the browser. Often it will not retrieve the page anew, but use the copy it has in its cache.

Why do you perceive this as a problem?


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: browser is not cached
 
Similar Threads
JSP and caching...
how to refresh the jsp page when onload?
button display
JSP Caching in Tomcat
logout issue