Tuesday, May 18, 2010

Clearing Browser Cache

<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"></meta>
<meta content="no-cache" http-equiv="Cache-control"></meta>
<meta content="no-store" http-equiv="Cache-control"></meta>
<meta content="no-cache" http-equiv="Pragma"></meta>
<meta content="0" http-equiv="expires"></meta>

<%
            response.setHeader("Cache-Control", "no-cache");
            response.setHeader("Pragma", "no-cache");
            response.setDateHeader("Expires", 0);
            response.setHeader("Cache-Control", "no-store");
%>

No comments:

Post a Comment