summaryrefslogtreecommitdiff
path: root/it_html.class
diff options
context:
space:
mode:
authorUrban Müller2007-08-16 14:52:03 +0000
committerUrban Müller2007-08-16 14:52:03 +0000
commit9553763ef0c3b46fc0c2851fccc09c4fd3854669 (patch)
treec881a95f055e48f51eeb4140c6bcdd8c572fcad0 /it_html.class
parentf6ca497dbc683fc22ebe5c342e9e811924a73042 (diff)
downloaditools-9553763ef0c3b46fc0c2851fccc09c4fd3854669.tar.gz
itools-9553763ef0c3b46fc0c2851fccc09c4fd3854669.tar.bz2
itools-9553763ef0c3b46fc0c2851fccc09c4fd3854669.zip
support max-age
Diffstat (limited to 'it_html.class')
-rw-r--r--it_html.class3
1 files changed, 2 insertions, 1 deletions
diff --git a/it_html.class b/it_html.class
index 3834251..034d288 100644
--- a/it_html.class
+++ b/it_html.class
@@ -502,9 +502,10 @@ function head($args = array())
if ($p['js'])
{
+ $checksum = itjs::checksum(itjs::filenames($p['js']));
$js .= $this->_itjs("boot.js", "inline");
$js .= "function it_boot_start(){ " . trim($p['jsboot']) . " }\n";
- $js .= "it_boot('/itjs/" . $p['js'] . "');\n";
+ $js .= "it_boot('/itjs/" . $p['js'] . "?s=$checksum');\n";
}
$js .= $this->_itjs($p['jsinline'], 'inline');