Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

History

 
Jeff Bergan
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I prevent my JSP pages from being cached in the history folder?
Thanks for any help
 
Junilu Lacar
Bartender
Pie
Posts: 7465
50
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There might be an answer to this in the JavaScript forum. Do a search there. We'll have this thread closed or moved there if you find something.
This thread may give you a clue: http://www.javaranch.com/ubb/Forum20/HTML/000741.html
Thanks!
Junilu
 
Jeff Bergan
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I take it then that the code below will have no affect? I write out information on the JSP page through attributes and tags and when I use the history page that is still their. The forms with inboxes are cleared, but for the info I put on the page using stored information it shows up. I can solve the problem of using the back button with some java script (although very inelegantly)
<%
response.setDateHeader ("Expires", 0);
response.setHeader("Pragma", "no-cache");
response.setHeader("Cache-Control", "no-store");
response.setDateHeader("max-age", 0);
response.setDateHeader("Expires", 0);
%>
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic