Re: no-cache control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Karl

2010/4/6 Karl DeSaulniers <karl@xxxxxxxxxxxxxxx>

> 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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux