login information
, image files, html pages, PDF documents and even video files. In short, anything that you can access through the internet.Advantages:-
~~~~~~~~~~~~~~
*. his automatic caching can be convenient, as it helps increase the speed of the page loading on your next visit
DisAdvantages:-
~~~~~~~~~~~~~~~~
*. it's also a major privacy risk.
Note: You may be visiting sites that you don't want others in your family to visit or maybe you want to ensure important username and password are kept private
Clear Login Credentials and Menu Constructing page based on Permissions etc..
For JSP,JSF:-
Apply this below code in all your view files..
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Cache-control" content="no-cache"/>
<meta http-equiv="Cache-control" content="no-store"/>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="expires" content="0">
<%
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