I know two way of doing this.
1. in servlet code use
response.setHeader("Pragma","No-Cache");
response.setHeader("Cache-Control","no-Cache");
response.setDateHeader("Expires", 0 );
2. Basicaly do the same but only with <META ..> keyword in HTML
I do not remember exactly format of <META> but can look it up if you
need.
You need all 3of them for different versions of browsers. If yourtarget is
one browser you can leave only those which is working with that browser.
George.
> -----Original Message-----
> From: Milt Epstein [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, November 08, 1999 10:31 AM
> To: [EMAIL PROTECTED]
> Subject: Re: How to prevent Page Caching by Servlet ??
>
> On Mon, 8 Nov 1999, Siros Supavita wrote:
>
> > Hello all,
> >
> > Thank you in your suggestion. Actually I had tried this header before,
> it
> > works well on netscape 4.6 and IE4. But on IE5, browser still cache this
> > page (I don't know why).
> >
> > Do you have another suggestion on this case ?? And if I want to prevent
> > proxy to store content of this page too, what would I do ??
>
> You can try setting the Expires header to some date/time in the past.
> You need to make sure you use the correct format for the Date though,
> there are specific requirements about the Expires header. You should
> be able to find some discussion of it in the list archives.
>
>
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, November 30, 1999 3:29 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: How to prevent Page Caching by Servlet ??
> > >
> > > response.setHeader("pragma","no-cache");
> > > response.setHeader("cache-control","no-cache");
> > >
> >
>
> Milt Epstein
> Research Programmer
> Software/Systems Development Group
> Computing and Communications Services Office (CCSO)
> University of Illinois at Urbana-Champaign (UIUC)
> [EMAIL PROTECTED]
>
> __________________________________________________________________________
> _
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html