aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/smarty/smarty/docs/programmers/api-variables/variable-cache-modified-check.md
blob: 05e00bb914439cf41dba8b52a08ba728e8189d77 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
\$cache\_modified\_check {#variable.cache.modified.check}
========================

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 `'304: Not Modified'` header will be sent instead of
the content. This works only on cached content without
[`{insert}`](#language.function.insert) tags.

See also [`$caching`](#variable.caching),
[`$cache_lifetime`](#variable.cache.lifetime), and the [caching
section](#caching).