in reply to Expiring CGI pages

Maybe instead of expires the following line in the header might help you:
<meta http-equiv="cache-control" content="no-cache">
(Sorry, I don't know how it works with CGI.pm).

Best regards,
perl -le "s==*F=e=>y~\*martinF~stronat~=>s~[^\w]~~g=>chop,print"

Replies are listed 'Best First'.
•Re: Re: Expiring CGI pages
by merlyn (Sage) on Mar 07, 2002 at 19:14 UTC
    No.

    Don't send anything in the body of the message that is really meant to be sent in the headers. The "meta http-equivalent" is meant only for those (hopefully rare) situtations where a document content needs to specify some meta instructions. Since the original question was clearly in the context of a CGI script, where you do in fact control the headers, the answer is completely inappropriate.

    {sigh}

    -- Randal L. Schwartz, Perl hacker

      I wrote: Maybe instead of expires the following line in the header might help you:

      I didn't write: put this line in the body, did I?

      If I really did, then sorry for my bad english. This was not intended by me.

      Best regards,
      perl -le "s==*F=e=>y~\*martinF~stronat~=>s~[^\w]~~g=>chop,print"

        The head (which you call "header") and the body of an HTML payload are still part of the content. This kind of meta stuff doesn't belong in the content. It belongs in the HTTP Header.

        -- Randal L. Schwartz, Perl hacker