RE: [PHP] refreshing pages in the cache
| From: | Ross Hansen | Date: | Thu, 28 Apr 2011 01:42:32 +0000 |
| Subject: | RE: [PHP] refreshing pages in the cache | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-312525@lists.php.net to get a copy of this message | ||
You need to still put in the standard PHP tags as you would normally and it is just another line of
code.
e.g
<?php
header("Cache-Control: no-cache");
?>
> To: php-general@lists.php.net
> From: jim.giner@albanyhandball.com
> Date: Wed, 27 Apr 2011 21:33:16 -0400
> Subject: Re: [PHP] refreshing pages in the cache
>
> ok - I'm lost. What do I do with this knowledge?
>
> ----- Original Message -----
> From: "Sean Greenslade" <zootboysean@gmail.com>
>
> >>
> > Sure. In order to "tell" the browser to not cache a page, you need to set
> > the header "Cache-Control: no-cache". This can be done by the PHP command
> >
> > header("Cache-Control: no-cache");
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>