includes/clientside/jsres.php
changeset 798 ddfc1b554a08
parent 780 f65e35566b63
child 800 9cdfe82c56cd
--- a/includes/clientside/jsres.php	Wed Dec 24 10:04:48 2008 -0500
+++ b/includes/clientside/jsres.php	Wed Dec 31 08:40:38 2008 -0500
@@ -255,7 +255,7 @@
 }
 
 // generate expires header
-$expires = date('r', mktime(-1, -1, -1, -1, -1, intval(date('y'))+1));
+$expires = date('r', mktime(0, 0, 0, intval(date('m')), intval(date('d')), intval(date('y'))+1));
 
 $everything = str_replace('/* JavaScriptCompressor 0.8 [www.devpro.it], thanks to Dean Edwards for idea [dean.edwards.name] */' . "\r\n", '', $everything);
 
@@ -270,6 +270,7 @@
 header("Last-Modified: $date");
 header("ETag: \"$etag\"");
 header("Expires: $expires");
+header("Content-Length: " . strlen($everything));
 
 $local_end = microtime_float();
 $local_gentime = $local_end - $local_start;