Cache-Control may not work on IE4 if you haven't specified to use HTTP1.1 in
Internet Options.../Advanced Tab/HTTP1.1 Settings since Cache-Control is a
HTTP1.1 feature.
BTW if you call setHeader twice with the same name, will it override the
previous value?
If the setHeader is not working, you may try to use the META tag
"HTTP-EQUIV" in your HTML output.
Pascal
-----Original Message-----
From: Rod McChesney [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 12, 1999 1:56 PM
To: [EMAIL PROTECTED]
Subject: Re: Expires not working
You can also try adding
response.setHeader("Pragma", "no-cache");
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Cache-Control", "no-store");
but IE 4 may defeat you on all of these. See the archives for details,
but IE has a bug in which no-cache headers don't work under some
circumstances.
Rod McChesney, Korobra
Mike Knowles wrote:
>
> The following date is the "beginning of time" date for HTTP and it's
always
> worked for me:
>
> <% response.setHeader("Expires", "Tue, 01 Jan 1981 01:00:00 GMT"); %>
>
> Mike
>
> -----Original Message-----
> From: Mike Engelhart [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 12, 1999 12:20 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Expires not working
>
> Try this:
>
> <% response.setHeader("Expires", "-1"); %>
>
> This worked for me.
>
> Mike
> ----------
> >From: Steve Lopez <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Expires not working (via response.setHeader())
> >Date: Thu, Aug 12, 1999, 12:21 AM
> >
>
> > I want to ensure that a page is retrieved from the server and
> > not from the local browser cache. I have the following code
> > in my jsp:
> >
> > <% response.setHeader("Expires", "Tues, 01 Jan 1980 00:00:00 GMT"); %>
> >
> > But this isn't working (the old page is loaded and the user is forced
> > to do a refresh.
> >
> > I am using the JSWDK-1.0 EA1 (JSP1.0) reference implementation
> > and the browser is IE4.01
> >
> > Thanks!
> >
> >
>
===========================================================================
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > of the message "signoff JSP-INTEREST". For general help, send email to
> > [EMAIL PROTECTED] and include in the body of the message "help".
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff JSP-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff JSP-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".