Re: no-cache control
| From: | Kim Emax | Date: | Tue, 06 Apr 2010 12:27:15 +0000 |
| Subject: | Re: no-cache control | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-303855@lists.php.net to get a copy of this message | ||
Hi Karl
2010/4/6 Karl DeSaulniers <karl@designdrumm.com>
> Is there a way to set up a no-cache control in your php.ini file or some
> config file?
> Sorry if this is a newb question.
>
Put it in the header:
header("Cache-Control: no-cache, must-revalidate");
Remember headers must be the first output you do, read more here.
http://dk.php.net/manual/en/function.header.php
--
Kind regards
Kim Emax