no-cache control

--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--
Karl DeSaulniers [ Di, 06 April 2010 07:49 ] [ ID #2037877 ]

Re: no-cache control

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

Hi Karl

2010/4/6 Karl DeSaulniers <karl [at] 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

--001636416959e4713d048390904e--
Kim Emax [ Di, 06 April 2010 14:27 ] [ ID #2037882 ]

Re: no-cache control

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
kranthi [ Mi, 07 April 2010 06:44 ] [ ID #2038027 ]

Re: no-cache control

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
Karl DeSaulniers [ Mi, 07 April 2010 08:35 ] [ ID #2038028 ]
PHP » gmane.comp.php.general » no-cache control

Vorheriges Thema: $_SERVER['PHP_AUTH_USER'] has gone
Nächstes Thema: SimpleXMLElement occasionally fails to parse gb2312 or big5 feeds