Skip to content

Instantly share code, notes, and snippets.

@johnnyreilly
Last active December 15, 2015 15:39
Show Gist options
  • Select an option

  • Save johnnyreilly/5283462 to your computer and use it in GitHub Desktop.

Select an option

Save johnnyreilly/5283462 to your computer and use it in GitHub Desktop.
Death to compatibility mode
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- See how the meta tag is the first inside the head? That's *important* -->
</head>
<body>
</body>
</html>
Response.AppendHeader("X-UA-Compatible", "IE=edge");
<?xml version="1.0"?>
<configuration>
<!-- ... -->
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="X-UA-Compatible" value="IE=edge" />
</customHeaders>
</httpProtocol>
</system.webServer>
<!-- ... -->
<configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment