response.setHeader("Pragma","no-cache");
response.setHeader("Cache-Control","no-cache, no-store, must-revalidate"); response.setHeader("max-age","0");
Alternatively you can use the HTTP meta equivalent tags to do in HTML
<meta http-equiv="Cache-Control" content="no-store,no-cache, must-revalidate,post-check=0, pre-check=0,max-age=0">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
Click Here for more options on cahce-control
Where do I have to set these headers? Portal Config?
ReplyDeleteSorry for the late response, these should go into the jsp/servlet/portlet (whatever the component that sends response back to the browser)
Delete