Re: caching and IE 5
| From: | Daniel James | Date: | Thu, 09 Aug 2001 09:47:12 +0000 |
| Subject: | Re: caching and IE 5 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-61966@lists.php.net to get a copy of this message | ||
On Thu, 9 Aug 2001, Karl Phillipson wrote:
> Is anyone else having fun and games with IE 5.0 and caching?
>
> I have the no-cache code (below) before anything else in my index file.
> Following that an include file is pulled in that has a form with a text
> input field that echos the date and time.
>
> Whenever I refresh the page the time does not update to reflect the current
> time, it sticks with the time that was displayed when the page was first
> loaded.
> Even when I close the browser and reopen it the time remains the same. Any
> pointers on this issue?
>
> <?php
> header ("Expires: Mon, 14 Jul 1963 05:00:00 GMT"); // Date in the past
> header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
> // always
> modified
> header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
> header ("Pragma: no-cache");
> ?>
>
>
> <input type="text" name="search_name" value="<?php echo
> "SEARCH
> ".date("F jS Y G:m A") ?>">
>
> Thx in advance.
>
> Karl
>
I do something messy when nothing else works... get ready for it.... hehe
<a href="<?=$PHP_SELF?>?iesux=<?=rand(100000,200000)?>">Click here to
refresh</a>
Told you it was ugly.
Twigman...