try all of these four: these will both trich the browser cache and the proxy
boxes lurking arond.
(all of them ARE case-sensitive!)


res.setHeader("Expires", "Tue, 25 Dec 1993 23:59:59 GMT"); //this date needs
to be in the past.
res.setHeader("Pragma", "no-cache");
res.setHeader("Cache-control", "no-cache");
res.setHeader("Last-Modified", "FRI, JUN 26 2020 23:59:59 GMT"); // this
date needs to be in the future

good luck.


Beste regards:
Frank Karlstr�m, Web-developer/java-programmer.


----- Original Message -----
From: "sharad mohan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 28, 2001 7:33 AM
Subject: res.setHeader("Cache-Control","no-cache") not working


> Hi
>
> I am creating a simple servlet. In which i have used
> setHeader() method. I wrote following line
>
> res.setHeader("Cache-Control","no-cache");
>
> sothat if a person click back button on browser then
> that corresponding page will not be displayed. But
> this is not working. I am using IE 5.0 and its
> supports HTTP 1.1
>
> I have allready tried
>
> res.setHeader("Cache-Control","no-store");
>
> and
>
> res.setHeader("pragma","no-cache");
>
> but still its not working.
>
>
> Thanks
>
> Sharad
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
>
>
___________________________________________________________________________
> 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

Reply via email to