Well, different browsers seems to obey different headers, etc, so if you really want to be reasonably sure all caching is disabled, you might need to emit several headers.

I once found a good example here in the PHP docs, that has seemed to work for all cases I've seen. It is most certainly overkill, but if no other solution presents itself...

This is the original code, which is easy to translate into perl, since it is just prints at the right moment (as in first). :) The function header in PHP is basically a print, that adds the correct \015\012 and must be emitted before the HTML itself, as expected.

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // alwa +ys modified header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/ +1.1 header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); // HTTP/1.0

That said it is pretty strange if it was the browser caching a POST, as I've never seen IE have that problem. But it is hard to think otherwise, since you say that Opera doesn't have that issue.


You have moved into a dark place.
It is pitch black. You are likely to be eaten by a grue.

In reply to Re: Strange POST Behavior / Possible Caching Issue by Dog and Pony
in thread Strange POST Behavior / Possible Caching Issue by vroom

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.