hi, i tried these few lines of codes but i couldnt get the computer to stop caching my files
<META http-equiv=Pragma content=no-cache>
<META http-equiv=Cache-Control content=no-cache>
<META http-equiv=expires content=-1>
////////
<META http-equiv=Pragma content=no-cache>
<META http-equiv=Cache-Control content=no-cache>
<META http-equiv=expires content=0>
////////
<% response.setHeader("pragma", "no-cache");%> etc
but i still get the same problem, how?
thanks
In ur action class u can use these lines of code :
response.setHeader("Cache-Control", "no-cache"); //Forces caches to obtain a new copy of the page from the origin server
response.setHeader("Cache-Control", "no-store"); //Directs caches not to store the page under any circumstance
response.setDateHeader("Expires", 0); //Causes the proxy cache to see the page as "stale"
response.setHeader("Pragma", "no-cache"); //HTTP 1.0 backward compatibility
Or in ur jsp
<META http-equiv="Cache-Control" content="no-cache">
<META http-equiv="expires" content="-1"> <!--content="0"-->
<META http-equiv="Pragma" content="no-cache">
<META http-equiv="Cache-Control" content="no-store">
This is working in my application