forcing a reload from a redirect
| From: | Mike Scalora | Date: | Tue, 25 Mar 2003 07:17:45 +0000 |
| Subject: | forcing a reload from a redirect | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-141017@lists.php.net to get a copy of this message | ||
I have two pages, foo.php and bar.php. bar.php redirects the user to foo.php
with the following code:
header("Location: http://".$_SERVER['HTTP_HOST']
.
dirname($_SERVER['PHP_SELF']) . "foo.php");
Normally, I want the browser to cache foo.php, it's content is fairly
static. But, bar.php makes changes that will cause foo.php to change. How do
I force foo.php to reload from the server whne I do this redirect? I've seen
code that adds a random number as a search string on the end of the URL, but
I want to avaoid that if possible.
-Mike