Hi there!
We have a webstore that I created -- all the scripts are written in perl. It's basically a modified version of checkout.pl.

Every time a user comes to the site they're automatically assigned a 'shopping cart' id. What is happening now is that if a user clicks on a link and Internet explorer sometimes uses a 'cached' page instead of executing the perl script again. Because of this a user may add an item to their shopping cart, then click around the site, then add another item to their shopping cart, and because it is an 'old' page, the first item that they added isn't there because the underlying html is working with two different shopping cart ids.

How can ask you force a link to 'refresh' and not use the cache? Is this maybe a javascript question? I'm a perl person so thought I'd come here for some suggestions.

Thank you!!


In reply to How to force perl script to be refreshed by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.