>>>>> "sharad" == sharad mohan <[EMAIL PROTECTED]> writes:

    sharad> Hi
    sharad> I am creating a simple servlet. In which i have used
    sharad> setHeader() method. I wrote following line

    sharad> res.setHeader("Cache-Control","no-cache");

    sharad> sothat if a person click back button on browser then
    sharad> that corresponding page will not be displayed. But
    sharad> this is not working. I am using IE 5.0 and its
    sharad> supports HTTP 1.1

    sharad> I have allready tried

    sharad> res.setHeader("Cache-Control","no-store");

    sharad> and

    sharad> res.setHeader("pragma","no-cache");

    sharad> but still its not working.

I don't have a solution for you, but assuming your browser is following the
spec somewhat closely, then "Cache-Control: no-store" won't do what you want.
That only indicates that it won't store the object in non-volatile storage.  It
has nothing to do with whether it will cache it, at least in volatile storage.

--
===================================================================
David M. Karr          ; Best Consulting
[EMAIL PROTECTED]   ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004)

___________________________________________________________________________
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