themes MDL-22826 Some minor changes to improve the IE user experience

This commit is contained in:
Sam Hemelryk
2010-07-07 09:10:10 +00:00
parent 018187da22
commit a6338a134b
10 changed files with 58 additions and 33 deletions
+2 -2
View File
@@ -95,7 +95,7 @@ function send_cached_js($jspath) {
header('Expires: '. gmdate('D, d M Y H:i:s', time() + $lifetime) .' GMT');
header('Pragma: ');
header('Accept-Ranges: none');
header('Content-Type: application/x-javascript');
header('Content-Type: application/javascript');
if (!min_enable_zlib_compression()) {
header('Content-Length: '.filesize($jspath));
}
@@ -110,7 +110,7 @@ function send_uncached_js($js) {
header('Expires: '. gmdate('D, d M Y H:i:s', time() + 2) .' GMT');
header('Pragma: ');
header('Accept-Ranges: none');
header('Content-Type: application/x-javascript');
header('Content-Type: application/javascript');
header('Content-Length: '.strlen($js));
echo $js;