From 4aa215a35bda0373801014e94fd04320cfa57582 Mon Sep 17 00:00:00 2001 From: KwangSeob Jeong Date: Tue, 17 Feb 2015 01:12:19 +0900 Subject: [PATCH 1/2] force disable ie compatibility view. --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 967ee3e..6633dff 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,7 @@ What I'm doing here is mostly collecting useful snippets from all over the inter - [Allow Cross-Domain Fonts](#allow-cross-domain-fonts) - [Auto UTF-8 Encode](#auto-utf-8-encode) - [Switch to Another PHP Version](#switch-to-another-php-version) + - [Force disable Internet Explorer compatibility view](#force-disable-ie-compatibility-view) ## Rewrite and Redirection Note: It is assumed that you have `mod_rewrite` installed and enabled. @@ -425,3 +426,13 @@ AddHandler application/x-httpd-php55 .php # Alternatively, you can use AddType AddType application/x-httpd-php55 .php ``` + +### Force disable ie compatibility view +If clients browser is Internet Explorer, Force disable IE compatibility view(using edge rendering engine) + +``` apacheconf +# Check clients browser +BrowserMatch MSIE is-msie +Header set X-UA-Compatible IE=edge env=is-msie + +``` From 4a4e2389f500b19919d3d54529d30325b5968914 Mon Sep 17 00:00:00 2001 From: An Phan Date: Mon, 23 Feb 2015 06:12:57 +0800 Subject: [PATCH 2/2] Reworded a bit --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 6633dff..0b09bae 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ What I'm doing here is mostly collecting useful snippets from all over the inter - [Allow Cross-Domain Fonts](#allow-cross-domain-fonts) - [Auto UTF-8 Encode](#auto-utf-8-encode) - [Switch to Another PHP Version](#switch-to-another-php-version) - - [Force disable Internet Explorer compatibility view](#force-disable-ie-compatibility-view) + - [Disable Internet Explorer Compatibility View](#disable-internet-explorer-compatibility-view) ## Rewrite and Redirection Note: It is assumed that you have `mod_rewrite` installed and enabled. @@ -427,12 +427,12 @@ AddHandler application/x-httpd-php55 .php AddType application/x-httpd-php55 .php ``` -### Force disable ie compatibility view -If clients browser is Internet Explorer, Force disable IE compatibility view(using edge rendering engine) +### Disable Internet Explorer Compatibility View +Compatibility View in IE may affect how some websites are displayed. The following snippet should force IE to use the Edge Rendering Engine and disable the Compatibility View. ``` apacheconf -# Check clients browser -BrowserMatch MSIE is-msie -Header set X-UA-Compatible IE=edge env=is-msie - + + BrowserMatch MSIE is-msie + Header set X-UA-Compatible IE=edge env=is-msie + ```