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.inc and set the expires parameter to 0. I'll make some other comments inline... > > Buy Good. 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... >
action="viewcart.tpl?cart=[cart]&_Action=Update&_LineIndex=[lineindex]" > method="post" name="UpdateQty"> > >
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 Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 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:

    
  1. Re: Browser Caching ( John Peacock 2003)
  2. Re: Browser Caching ( Brian Wachter 2003)
  3. Re: Browser Caching ( Donovan 2003)
  4. Re: Browser Caching ( Brian Wachter 2003)
  5. Re: Browser Caching ( Donovan 2003)
  6. Re: Browser Caching ( John Peacock 2003)
  7. Re: Browser Caching ( Brian Wachter 2003)
  8. Re: Browser Caching ( John Peacock 2003)
  9. Re: Browser Caching ( Brian Fries 2003)
  10. Re: Browser Caching ( Donovan 2003)
  11. Re: Browser Caching ( Brian Wachter 2003)
  12. Re: Browser Caching ( Donovan 2003)
  13. Browser Caching ( Brian Wachter 2003)
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.inc and set the expires parameter to 0. I'll make some other comments inline... > > [cart]&_Action=Add&_SKU=1001">Buy Good. 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... >
action="viewcart.tpl?cart=[cart]&_Action=Update&_LineIndex=[lineindex]" > method="post" name="UpdateQty"> > >
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:
[cart]">
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 Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 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:

WebCat2 beta 11 - new prefs ... (1997) apostrophe in search item (1997) shipping costs (1997) setlineitem - textc and texte (2005) Discounts (1998) How is it done? (1998) Logging purchases (1997) Strange Crash (1998) Harvesting invalid email addresses from bounced emails??? (2000) possible, WebCat2.0 and checkboxes-restated (1997) Upload Progress Bar (2003) [showif]/[hideif] question (1997) Secure server question (1997) RequiredFields template (1997) Text limits in NT version? (1997) WebCatalog2 Feature Feedback (1996) Searching multiple fields (1997) HELP!! problems with e-mail from WebCAT (1998) WebCat and AppleShare 6.0 (1998) Execute Applescript (1997)