From 9553763ef0c3b46fc0c2851fccc09c4fd3854669 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 16 Aug 2007 14:52:03 +0000 Subject: support max-age --- it_html.class | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'it_html.class') 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'); -- cgit v1.2.3