Try this:
response.setHeader("Pragma", "no-cache");
response.setHeader( "Cache-Control","no-cache" );
response.setHeader( "Cache-Control","no-store" );
response.setDateHeader( "Expires", 0 );
in a JSP page.
It works on our pages using either IE 4x or NN 4x or higher. Maybe the
difference is the response.setDateHeader() statement, or it could be your
JSP engine.
We're using iPlanet 4.1 web server for our JSP engine.
Good luck.
Jeffrey
>From: Manish Bhatnagar <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: How to set the no-cache option for IE
>Date: Wed, 18 Oct 2000 10:49:25 +0530
>
>Hello!
>It does not work even with NN4.7. I tried it with both the browser but both
>of them seem to take the page from the cache.
>
>Manish
>
>prasanna ganesan wrote:
>
> > Hi
> > I am trying to set the no-cache option in JSP by using
> >
> > response.setHeader("Cache-Control","no-cache");
> > response.setHeader("Cache-Control","no-store");
> > response.setHeader("Pragma","no-cache");
> > response.setHeader("Cache-Control","max-age=0");
> >
> > It works with Netscape.But with IE it doesn't work.Can anyone of u help
>me out how to set the no-cache option for IE.
> >
> > Thanks & Regards
> > Prasanna.G.
> >
> > _______________________________________
> > Click here to get your free domain name
> > and personal portal from NAMEzero(TM):
> > http://www.namezero.com
> >
> >
>===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> > http://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.html
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>--
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Live-Your-Dream~~~~
>Obstacles are things a person sees when he takes his eyes off his goal.
> -E.
>Joseph Cossman
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets