JSP No Cache Browser Back Button

How to Disable Browser cache in JSP

We can disable webpage being cached by browser by setting the header in JSP.
Just add the below line in top of the JSP page. This code will preventing cache from browser and proxy server.

response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 0); //prevents caching at the proxy server

Related Topic Complete List of All Meta Tags
How to Enable Group Chat Instant Messenger on Facebook
How to Disable Browser Back Button in JavaScript
JS History Object Previous Example
Network Caching Techniques and Benefits

nScraps.com 2011   Privacy Policy  Terms of Service  Feedback