Re: [SMARTY] getting correct Last-Modified date
| From: | Monte Ohrt | Date: | Fri, 26 Jul 2002 13:17:11 +0000 |
| Subject: | Re: [SMARTY] getting correct Last-Modified date | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-5462@lists.php.net to get a copy of this message | ||
Smarty will do this for you. Set the $cache_modified_check variable to true and Smarty will send Last-Modified headers and respect If-Modified-Since headers, sending a "304 Not Modified" if the page has not been modified.
http://smarty.php.net/manual/en/variable.cache.modified.check.html
Ivo Jansch wrote:
Hi, to optimally make use of the browser cache of my visitors, I want to send the correct Last-Modified header. When my template is rendered, this is no problem, since I have the date in the database. However, when the template is fetched from the cache, I don't know this date. What is the best way to retrieve this date, without manually getting around Smarty to get the cache-file timestamp? Greetings, Ivo-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.