Re: [SMARTY] Cache Control??

From: Date: Thu, 25 Apr 2002 01:57:13 +0000
Subject: Re: [SMARTY] Cache Control??
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3881@lists.php.net to get a copy of this message
That might work in a pre-filter, but I am not sure you could control the order to make sure it would be the first prefilter processed. You might just be better off including this in the php script before the display: header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header ("Cache-Control: no-cache, must-revalidate"); $template->display('yourtemplate.tpl'); ----- Original Message ----- From: "Gerard Samuel" <gsam@trini0.org> To: "smarty" <smarty-general@lists.php.net> Sent: Wednesday, April 24, 2002 2:26 PM Subject: [SMARTY] Cache Control?? > I used this so browsers do not cache content. > > header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); > header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); > header ("Cache-Control: no-cache, must-revalidate"); > > I tried to create a compiler that would do this with smarty, but it keep > spitting errors > about sent headers. > > Is there a recommended way to simulate this, or do you even recommend > using it?? > > Thanks > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.smarty.general (#3881) next »