caching

Hi, how come my computer still can cache mi JSP files despite me setting the header to no-cache and even putting in the http-equiv as well? anyone?thanks
[174 byte] By [des_xu] at [2007-9-26 1:15:17]
# 1
Check this out....<HEAD><META http-equiv=Pragma content=no-cache> <META http-equiv=Cache-Control content=no-cache> <META http-equiv=expires content=-1></HEAD>
glow007 at 2007-6-29 0:41:30 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

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

des_xu at 2007-6-29 0:41:30 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
anyone? thanks
des_xu at 2007-6-29 0:41:30 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
anyone pls help?
des_xu at 2007-6-29 0:41:30 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5

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

nitin_talwar at 2007-6-29 0:41:30 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...