Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

browser is not cached

 
biswajit ray
Ranch Hand
Posts: 30
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic