Try:
response.setHeader("Cache-Control", "no-store");
This should prevent caching at the proxy level also.
Thanks,
Ravikiran Anupindi
Bank Of America
(704)-386-3648
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
-----Original Message-----
From: Milt Epstein [mailto:[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