no-cache control

no-cache control

am 06.04.2010 07:49:22 von Karl DeSaulniers

--Apple-Mail-3-167986203
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
delsp=yes;
format=flowed

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.
Thanks,


Karl DeSaulniers
Design Drumm
http://designdrumm.com


--Apple-Mail-3-167986203--

Re: no-cache control

am 06.04.2010 14:27:15 von Kim Emax

--001636416959e4713d048390904e
Content-Type: text/plain; charset=ISO-8859-1

Hi Karl

2010/4/6 Karl DeSaulniers

> 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

--001636416959e4713d048390904e--

Re: no-cache control

am 07.04.2010 06:44:44 von kranthi

you can do that by using .htacess in the required directory
http://www.askapache.com/htaccess/apache-speed-cache-control .html

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: no-cache control

am 07.04.2010 08:35:32 von Karl DeSaulniers

Thanks kranthi. I thought there was a way.
I was thinking you could, say, set your header content in the php.ini
file?, but a .htaccess would work too.
Thanks,
Best,

Karl

On Apr 6, 2010, at 11:44 PM, kranthi wrote:

you can do that by using .htacess in the required directory
http://www.askapache.com/htaccess/apache-speed-cache-control .html

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Karl DeSaulniers
Design Drumm
http://designdrumm.com


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php