Files
smarty/docs/en/programmers/api-variables/variable-cache-modified-check.xml
2006-09-27 06:28:21 +00:00

46 lines
1.3 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ -->
<sect1 id="variable.cache.modified.check">
<title>$cache_modified_check</title>
<para>
If set to &true;, Smarty will respect the If-Modified-Since
header sent from the client. If the cached file timestamp has
not changed since the last visit, then a <literal>'304: Not Modified'</literal>
header will be sent instead of the content. This works only on
cached content without
<link linkend="language.function.insert"><varname>{insert}</varname></link>
tags.
</para>
<para>
See also
<link linkend="variable.caching"><parameter>$caching</parameter></link>,
<link linkend="variable.cache.lifetime"><parameter>$cache_lifetime</parameter></link>,
<link linkend="variable.cache.handler.func"><parameter>$cache_handler_func</parameter></link>,
and the
<link linkend="caching">caching section</link>.
</para>
</sect1>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->