Cache Control??
| From: | Gerard Samuel | Date: | Wed, 24 Apr 2002 19:26:38 +0000 |
| Subject: | Cache Control?? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-3876@lists.php.net to get a copy of this message | ||
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