Re: expiring pages and reloading (ASP)
by "Mukesh Wani" <mukeshwani(at)hotmail.com>
|
Date: |
Mon, 17 Jan 2000 21:08:29 GMT |
To: |
pbabcock(at)bgsgroup.com, hwg-languages(at)hwg.org |
|
todo: View
Thread,
Original
|
|
I developed the shopping cart system for www.icelebrate.com and we had the
same problem. As far as I know, there are two ways....
1) add a timestamp parameter to the end of the URL for every link in your
website so IE will get a fresh copy of the page from the server.
2) use the no-pragma cache in the META tags.
I went with the 2nd option. Let me know if there are any other solutions.
HTH,
Mukesh Wani
>
>Hi all
>
>I am developing a shopping cart in asp that will have a "min-cart" viewable
>at all times throughout the site. The problem I have encountered is that
>my "mini-cart" is being cached in the browser and therefore, unless the
>user hits refresh, is not getting properly updated. What I need is either:
>
>a) A better way to expire the content, what I have is this:
>Response.Expires = 0
>Response.Buffer = true
>Response.ExpiresAbsolute = #1/1/2000 00:00:00#
>Response.AddHeader "Cache-Control", "Private"
>Response.AddHeader "Pragma", "No-Cache"
>(this solution works in nn 4.7, but not IE5 (?) )
>
>~OR~
>
>b) A way to reload a page when a user hits their back-button, but only
>once. Obviously doing something like body onload=reload would not work, as
>it would just loop forever.
>
>Any Ideas?
>
>
>
>Phil Babcock
>Lead Web Designer
>BGS Group Inc.
>
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA