RE: [PHP] Force no Cache
| From: | Rasmus Lerdorf | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | RE: [PHP] Force no Cache | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-142512@lists.php.net to get a copy of this message | ||
On Sat, 5 Apr 2003, John W. Holmes wrote:
> > header('Cache-Control: no-cache, must-revalidate');
> > header('Pragma: no-cache');
> > header('Expires: Mon,26 Jul 1980 05:00:00 GMT');
>
> Kind of a follow on question to this. If you use a method like this on
> public web pages, does anyone know if it'll affect how search engines
> index your page? Will they ignore it because it's "expired"? Thanks.
No, as far as I know at least google does not ignore cache-expired pages
like that. There is a No-Archive meta tag you can put in your page to
tell it not to archive, or of course, you can robots.txt it.
-Rasmus