mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-36487 do not use IE=edge header on pages that have custom X-UA-Compatible
Thanks Dan Poltawski for spotting this regression!
This commit is contained in:
parent
398862b92b
commit
791922735f
1 changed files with 4 additions and 1 deletions
|
@ -1848,7 +1848,10 @@ function send_headers($contenttype, $cacheable = true) {
|
|||
@header('Content-Type: ' . $contenttype);
|
||||
@header('Content-Script-Type: text/javascript');
|
||||
@header('Content-Style-Type: text/css');
|
||||
@header('X-UA-Compatible: IE=edge');
|
||||
|
||||
if (empty($CFG->additionalhtmlhead) or stripos($CFG->additionalhtmlhead, 'X-UA-Compatible') === false) {
|
||||
@header('X-UA-Compatible: IE=edge');
|
||||
}
|
||||
|
||||
if ($cacheable) {
|
||||
// Allow caching on "back" (but not on normal clicks)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue