• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP Caching

 
Brian Agius
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do nto want my jsps to be cached. For this reason on the pages I inlcuded the following:

<head>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-store">
</head>

But though I have deleted the contents of the Tomcat work direcotry and restarted it, the pages are stil being displayed in the MSE history. Do I have to include anything else please or what ?

Thanks for any help
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cache and browser history are not the same thing. Cache means that the browser saves the contents of the page on the client's machine so it can be displayed quickly without going to the server to pull down the content again. Browser history is just an entry in a list somewhere that the browser keeps saying that you visited the page (so that you can easily find something you were looking at the other day but didn't bookmark, or so you can prove that your significant other or children are secretly visiting "naughty" sites ) The contents of the page are not saved in browser history, and there's really no way I know of affecting browser history from the server side. There might be some way to do it in Javascript, though, since it runs on the client side.
 
Akbar Basha R
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://www.jguru.com/faq/view.jsp?EID=377&page=2

check the above link.
This should help you.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!