MDL-21241 theme CSS and JS gzip compression + some more fixes

This commit is contained in:
Petr Skoda
2010-01-05 20:18:15 +00:00
parent 085f71b728
commit 7c986f04e3
7 changed files with 55 additions and 14 deletions
+2 -2
View File
@@ -144,7 +144,8 @@ function send_cached_image($imagepath, $rev) {
header('Content-Type: '.$mimetype);
header('Content-Length: '.filesize($imagepath));
while (@ob_end_flush()); //flush the buffers - save memory and disable sid rewrite
// no need to gzip already compressed images ;-)
readfile($imagepath);
die;
}
@@ -170,7 +171,6 @@ function send_uncached_image($imagepath) {
header('Content-Type: '.$mimetype);
header('Content-Length: '.filesize($imagepath));
while (@ob_end_flush()); //flush the buffers - save memory and disable sid rewrite
readfile($imagepath);
die;
}