RE: [PHP] refreshing pages in the cache
| From: | Ross Hansen | Date: | Thu, 28 Apr 2011 02:09:02 +0000 |
| Subject: | RE: [PHP] refreshing pages in the cache | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-312527@lists.php.net to get a copy of this message | ||
I am not 100% with this so i might not have the full picture however, it
is just a command that would have the server tell the client not to
cache the page. from something i just read you would want to execute
this from the server, as by the time it gets to the client it would be
too late as it would have already been cached.
Have a look at this page also
http://php.net/manual/en/function.header.php
There is a quick section on this, it doesn't explain much detail but it does give an idea.
> To: php-general@lists.php.net
> From: jim.giner@albanyhandball.com
> Date: Wed, 27 Apr 2011 21:52:57 -0400
> Subject: Re: [PHP] refreshing pages in the cache
>
> So - it's not an html attribute - it's a PHP command that precedes ALL my
> html headers?
>
> "Ross Hansen" <hansen.ross@live.com.au> wroteYou 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");
> ?>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>