note 15343 deleted from function.header by jimw
| From: | jimw@php.net | Date: | Wed, 31 Oct 2001 22:12:17 +0000 |
| Subject: | note 15343 deleted from function.header by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-19816@lists.php.net to get a copy of this message | ||
This has nothing to do with the header function, but people seem to have big concerns about how to
prevent pages from being cached. Another solution than the ones proposed is to add a random variable
to the URI so that it's always unique. This involves neither header information nor
<META> tags. Every time you print a link, do something like:
$nocache=md5(uniqid(time());
print("<a href=\"http://my.site.com/dynamic.php?nocache=$nocache\">My
Dynamic Page</a>");
You could even make the variable NAME random!
If you have a stock procedure for generating links which also keeps track of query information, than
it shouldn't be too hard to alter it this way.