Sometimes you do not want your JSP pages to be cached. This can be done by setting the header parameters as shown below:


Java Code:
<%
response.setHeader("Cache-Control","no-cache"); 
response.setHeader("Pragma","no-cache"); 
response.setDateHeader ("Expires", -1);
%>
<HTML>
<HEAD> 
</HEAD> 
<BODY>
my page body

</BODY>
<HEAD> 
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> 
<META HTTP-EQUIV="Expires" CONTENT="-1">
</HEAD> 
</HTML>