themes MDL-22826 Some minor changes to improve the IE user experience
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user