From e7d1424792808f45561716e61d6b94d8d553277a Mon Sep 17 00:00:00 2001 From: Elliott Eggleston Date: Thu, 22 Mar 2018 17:29:29 -0500 Subject: [PATCH] OutputPage: Remove 'X-UA-Compatible' header (was for IE8-10 JS compat) Save 26 bytes each request. We're not sending JS to those browsers any more, they're dying out, and apparently just the `` is enough to trigger Edge mode. https://stackoverflow.com/questions/26346917/why-use-x-ua-compatible-ie-edge-anymore Bug: T27378 Change-Id: I5418d4b043a8c8669886c39a93732e4a7d50337e --- includes/OutputPage.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 6c45d9ccf7..52940bc863 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -2417,10 +2417,6 @@ class OutputPage extends ContextSource { $response->header( 'Content-type: ' . $config->get( 'MimeType' ) . '; charset=UTF-8' ); $response->header( 'Content-language: ' . $wgContLang->getHtmlCode() ); - // Avoid Internet Explorer "compatibility view" in IE 8-10, so that - // jQuery etc. can work correctly. - $response->header( 'X-UA-Compatible: IE=Edge' ); - if ( !$this->mArticleBodyOnly ) { $sk = $this->getSkin(); -- 2.20.1