ujjwal soni wrote:
<% response.setHeader("Cache-Control","no-cache");
response.setHeader("Pragma","no-cache");
response.setDateHeader ("Expires", -1);
response.setHeader("Cache-Control","no-store"); //HTTP 1.1
%>
1) Scriptlets always indicate a bad practice.
2) Code duplication is always a bad practice.
3) You're overriding the correct Cache-Control header with an incorrect one.