Force IE in Edge Mode

If you’re seeing Internet Exploder loading your site in an old compatibility mode, try adding the following to your web.config file:

<system.webServer>
  <httpProtocol>
    <customHeaders>
      <add name="X-UA-Compatible" value="IE=Edge" />
    </customHeaders>
  </httpProtocol>
</system.webServer>

It may or may not work – I haven’t had the time or patience to learn all the various scenarios that screw up Internet Exploder, but this works in at least some scenarios.


Comments

Popular posts from this blog

C# Record Serialization

Add timestamp to photo using ImageMagick

Read/write large blob to SQL Server from C#