Re: Browser Caching
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 52641
interpreted = N
texte = Brian Wachter wrote:> I suspect that you're right and that I'm not getting *something* right with> the [orderfile] context. I don't see the problem, so let me post some code.Thanks, it's much easier to debug actual code. Unfortunately, I don't see anything actively wrong. I still don't think that it is a browser cache issue, but if you want to ensure that the browser is going to cache that page, use the MIMEHeaders.inc file which I have posted to the list:http://search.smithmicro.com/TalkListArchive/DetailResults.tpl?command=search&db=webdna-talk.db&eqIDdata=34801&max=1&words=MIMEHeaders.incand set the expires parameter to 0.I'll make some other comments inline...> >
BuyGood. No URL command involved.> ----------------------------------------------> [Switch value=[_Action]]> [Case value=Add]> [addlineitem> cart=[cart]&SKU=[_SKU]&db=/db/Products.db]quantity=1[/addlineitem]> [/Case]> [Case value=Remove]> [removelineitem cart=[cart]&index=[_LineIndex]]> [/Case]> [Case value=Update]> [setlineitem> cart=[cart]&index=[_LineIndex]]quantity=[_NewQty][/setlineitem]> [/Case]> [/Switch]For testing, add lines like the above, so you can see that you are only running the single case you are interested in. If you want, you can leave those comments in there, so they are always visible under View Source, but not on the visible page.> [orderfile cart=[cart]]> > ...> [lineitems]....snip...>
I don't like that style of mixing URL and form actions. It is not strictly permitted under HTTP standards (it is server implementation dependent). If you are using a form, IMNSHO, you should use only form variables. Rewritten, that would be:
Sorry I cannot see anything specifically wrong with the code. To paper over the problem, you can use the following bodge:
but that is pretty evil! Try the MIMEHeaders.inc first...John-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 301-429-5748-------------------------------------------------------------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 Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Brian Wachter wrote:> I suspect that you're right and that I'm not getting *something* right with> the [orderfile] context. I don't see the problem, so let me post some code.Thanks, it's much easier to debug actual code. Unfortunately, I don't see anything actively wrong. I still don't think that it is a browser cache issue, but if you want to ensure that the browser is going to cache that page, use the MIMEHeaders.inc file which I have posted to the list:http://search.smithmicro.com/TalkListArchive/DetailResults.tpl?command=search&db=webdna-talk.db&eqIDdata=34801&max=1&words=MIMEHeaders.incand set the expires parameter to 0.I'll make some other comments inline...> > [cart]&_Action=Add&_SKU=1001">BuyGood. No URL command involved.> ----------------------------------------------> [Switch value=[_Action]]> [Case value=Add]> [addlineitem> cart=[cart]&SKU=[_SKU]&db=/db/Products.db]quantity=1[/addlineitem]> [/Case]> [Case value=Remove]> [removelineitem cart=[cart]&index=[_LineIndex]]> [/Case]> [Case value=Update]> [setlineitem> cart=[cart]&index=[_LineIndex]]quantity=[_NewQty][/setlineitem]> [/Case]> [/Switch]For testing, add lines like the above, so you can see that you are only running the single case you are interested in. If you want, you can leave those comments in there, so they are always visible under View Source, but not on the visible page.> [orderfile cart=[cart]]> > ...> [lineitems]....snip...> I don't like that style of mixing URL and form actions. It is not strictly permitted under HTTP standards (it is server implementation dependent). If you are using a form, IMNSHO, you should use only form variables. Rewritten, that would be:Sorry I cannot see anything specifically wrong with the code. To paper over the problem, you can use the following bodge:but that is pretty evil! Try the MIMEHeaders.inc first...John-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 301-429-5748-------------------------------------------------------------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 Web Archive of this list is at: http://webdna.smithmicro.com/
John Peacock
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:
WC2b15 - [HTMLx]...[/HTMLx] problems (1997)
Can [writefile] files be served thru webcat? (2000)
WebCatalog Growth (2000)
Online reference (1997)
text size limitation (1997)
foriegn characters and webcatalog (1997)
when is date system date or order date? (1997)
Double Spacing in Mails from Sendmail (2002)
CMS - Formatting Content (2004)
[username] [password] Not shown! HELP! (1999)
Shopping Cart Limits? (1998)
WebDNA Trouble... (1999)
b12 cannot limit records returned and more. (1997)
SiteEditPro (1996)
Rendering out a page (1997)
Re:no [search] with NT (1997)
Using Plug-In while running 1.6.1 (1997)
Explorer 3.0/ Access Denied! (1997)
Bug or syntax error on my part? (1997)
How to Sort Summ data ? (1997)