Re: Duplicate Cart Problem in Netscape SOLUTION

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 28696
interpreted = N
texte = >on 03/07/00 10:29 AM, Paul Willis at paul@netro42.com wrote: > >> To fix it add these lines to the pages with the [cart] tag on... >> >> [SETMIMEHEADER name=Pragma&value=no-cache] > > [SETMIMEHEADER name=Expires&value=Thu, 01 Dec 1994 16:00:00 GMT] >> [SETMIMEHEADER name=Cache-Control&value=max-age=0] >> > > They will tell the browser not to cache the pages.>I added Paul's idea to each page in the site, whether it contains [cart] or >not. (Can't hurt...can it?)The only 'problem' I have experienced with this code is if the user needs to go back in their browser and the previous page was a form the page isn't cached (obviously) and you get a grey page with a message that says Data Missing, This document resulted from a POST operation and has expired from the cache. If you wish you can repost the form data to recreate the document by pressing the reload button.I don't know if it appears in any other circumstances...and much as I would like to take the credit the code was from Christer Olsson in a previous post to this list last yearThanks Christer :)>Now, everything seems to work perfectly well in Netscape and in IE. The >problem evidently does NOT occur in the Mac version of IE 4.x, but I have no >idea if it will pop up in any other browsers such as Opera, AOHell, >whatever.I think it should work with all browsers that stick to the 'standards'Paul Willis------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Associated Messages, from the most recent to the oldest:

    
  1. Re: Duplicate Cart Problem in Netscape SOLUTION (Paul Willis 2000)
  2. Re: Duplicate Cart Problem in Netscape SOLUTION (Glenn Busbin 2000)
>on 03/07/00 10:29 AM, Paul Willis at paul@netro42.com wrote: > >> To fix it add these lines to the pages with the [cart] tag on... >> >> [SETMIMEHEADER name=Pragma&value=no-cache] > > [SETMIMEHEADER name=Expires&value=Thu, 01 Dec 1994 16:00:00 GMT] >> [SETMIMEHEADER name=Cache-Control&value=max-age=0] >> > > They will tell the browser not to cache the pages.>I added Paul's idea to each page in the site, whether it contains [cart] or >not. (Can't hurt...can it?)The only 'problem' I have experienced with this code is if the user needs to go back in their browser and the previous page was a form the page isn't cached (obviously) and you get a grey page with a message that says Data Missing, This document resulted from a POST operation and has expired from the cache. If you wish you can repost the form data to recreate the document by pressing the reload button.I don't know if it appears in any other circumstances...and much as I would like to take the credit the code was from Christer Olsson in a previous post to this list last yearThanks Christer :)>Now, everything seems to work perfectly well in Netscape and in IE. The >problem evidently does NOT occur in the Mac version of IE 4.x, but I have no >idea if it will pop up in any other browsers such as Opera, AOHell, >whatever.I think it should work with all browsers that stick to the 'standards'Paul Willis------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Paul Willis

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Fw: [SQL] and [index] mystery solved (2001) Locking up with WebCatalog... (1997) For those of you not on the WebCatalog Beta... (1997) security (https) w webcat (1999) Dates! (1998) WebCat2b15MacPlugIn - [authenticate] not [protect] (1997) Socks Proxy Error (1999) Date Formats (1997) Small problem (2001) Nesting format tags (1997) [WebDNA] [thisurl] not clean on fastcgi 7 (2010) checking for [ and ] in form fields ... (1997) RAM variables (1997) ShowNext (1997) creating an index based on first letter of word inspecific field in database (2002) More questions about serial number dishing (1997) California Tax Rates (1998) Catalogs and W* (1996) Using Applescript to process WebCatalog functions (1998) FirstClass/WebCatalog (1999)