Hi,

AFAIL, this doesn't work with some IE versions(5 and above I think) the
problem is caused because IE5+ decides whether it wonts to cache the
page if the page is greater than 32k. So, when it decides that the page
has to be cached, the headers have been long ago forgotten :(. The
solution in our case was to add also the "no caching, please" piece of
html at the end of the pages. So our pages end up being something
like...
<html>
<head>
        <meta http-equiv="Expires" content="now" />
        <meta http-equiv="Cache-Control" content="no-cache,
must-revalidate"/>
        <meta http-equiv="Pragma" content="no-cache" />
        ...
</head>
<body>
...
</body>
  <head>
        <meta http-equiv="Expires" content="now" />
        <meta http-equiv="Cache-Control" content="no-cache,
must-revalidate"/>
        <meta http-equiv="Pragma" content="no-cache" />
  </head>
</html>
This trick works for us on all the browsers I have tested so far.
I hope this helps,
Dan
References:
http://support.microsoft.com/support/kb/articles/Q222/0/64.ASP

http://support.microsoft.com/support/kb/articles/Q234/2/47.ASP




Tagunov Anthony wrote:
> 
> On Tue, 13 Mar 2001 17:13:14 +0100, Zsolt Koppany wrote:
> 
> >Hi,
> >
> >with the code below I can get netscape not to cache a jsp page but it
> >does not work with Internet-Explorer.
> >Does anybody know why?
> >
> >
> >response.setHeader("Cache-Control", "no-cache");
> >response.setHeader("Pragma", "no-cache");\
> >
> 
> Hitting the same problem we used at
> http://www.mavicanet.com
> and it works both on NS and IE!
> 
>                 response.setHeader("Pragma","no-cache");
>                 response.setHeader("Cache-Control","no-cache");
>                 response.setHeader("Expires","Thu, 01 Dec 1994 16:00:00 GMT");

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to