Search the MSDN Library for any of the following strings:
Expires
ExpiresAbsolute
HTTP-EQUIV
META
Here's an example of how to set it in HTML. Put the META tag inside the
HEAD tag.
<META HTTP-EQUIV="Expires" CONTENT="Tue, 04 Dec 1996 21:29:02 GMT">
Here's an example of how to set it in HTTP, along with 2 other headers.
This is from an embedded web server I built. The zero tells the browser to
expire the page immediately. Otherwise, replace 0 with another number to
indicate an amount of time, in minutes, after which the page should expire.
HTTP/1.1 200 OK
Content-Type: text/html
Expires: 0
In ASP, you can say
Response.Expires = 10
to expire in 10 minutes.
JSP probably has a similar syntax.
Ed
Livin' La Vida Loca
> -----Original Message-----
> From: Chris Fesler [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 10, 1999 04:28 PM
> To: [EMAIL PROTECTED]
> Subject: Re: POST and browser behavior
>
>
> > So if the same problem shows up on multiple browsers, multiple
> > servers, and
> > GET/POST is irrelevant, let's revist the possibility of
> HTTP headers.
> >
> > A page can be set to expire by one of 2 methods. Set an HTTP
> > header or use
> > a META tag in the HTML. The same methods can also be used
> to say that a
> > page expires immediately or that it never expires. If you
> want to see
> > source examples, lemme know and I'll dig them up.
>
> Ed, yer rockin' my world : )
>
> I'd love to see source examples or just a reference to what
> specs I should
> check out.
>
> Thanks!
>
> c
>
> > Ed
> >
> > Livin' La Vida Loca
> >
> >
> >
> > -----Original Message-----
> > From: Chris Fesler [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, June 10, 1999 03:25 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: POST and browser behavior
> >
> >
> > > Anyways, my advice still stands - use GET if you can.
> >
> > Unfortunately, GET is not appropriate all the time. In the case of a
> > shopping cart application, using get would cause the form to be
> > re-executed
> > automatically, which defeats the purpose (see my original
> post). Somehow,
> > amazon is managing to do this successfully.
> >
> > > > Internet Explorer (IE) 4.01 experiences the same problem
> >
> > Incidentally, Netscape 4.5 does, too.
> >
> > c
> >
> > > > I'm working on a JSP shopping cart implementation, and am
> > > having a problem
> > > > getting a desired behavior. Here's what happens with my
> shopping cart:
> > > >
> > > > -- my cart --
> > > > (1) User is viewing the cart,
> > > > (2) User changes the quantity of item(s) in the cart via a form
> > > > (METHOD=post), and submits.
> > > > (3) Quantity is updated.
> > > > (4) User changes the quantity of item(s) again.
> > > > (5) User hits back button.
> > > > (6) With IE5, user gets message "Warning: Page has expired," and
> > > > is invited
> > > > to hit the refresh button.
> > > > (7) User hits the refresh button, and their quantities are back
> > > > at what the
> > > > were at step (3).
> > > >
> > > > This is clearly not optimal! For an example of what I'm
> trying to
> > > > accomplish, check out amazon.com:
> > > >
> > > > -- desired behavior (e.g., as at amazon.com) --
> > > >
> > > > (1-5) as above
> > > > (6) No problem -- user is simply taken back to the
> previous screen
> > > > (7) User clicks on "view cart" (or whatever) and the correct
> > > > quantities are
> > > > displayed.
> > > >
> > > > I've looked for a setting on HttpServletResponse, but to no
> > > avail. amazon
> > > > doesn't seem to be using any META tags or special FORM tags that
> > > > I can see.
> > > >
> > > > Help!
> > > >
> > > > Thanks,
> > > >
> > > > chris
> > > >
> > > >
> ==================================================================
> > > > =========
> > > > 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".
> >
>
> ==============================================================
> =============
> 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".