title: IIS ignores system.webServer staticContent section
body: <p><strong>UDPATE</strong></p>
  
  <p>On a whim, I decided to upload the 4 fonts files to an font converter. I converted the fontsfrom ttf to ttf and then tried it. Everything works fine: the Content-Type is set correctly and the X-Powered-By header is removed.<br>
  Weird.</p>
  
  <hr>
  
  <p>I am trying to change the mime type (Content Type header) of a .ttf file in web.config on IIS7.</p>
  
  <p>Here is the staticContent section inside <code>&lt;system.webServer /&gt;</code>:</p>
  
  <pre><code>&lt;staticContent&gt;
      &lt;remove fileExtension=".ttf" /&gt;
      &lt;mimeMap fileExtension=".ttf" mimeType="font/ttf" /&gt;
  &lt;/staticContent&gt;
  </code></pre>
  
  <p>Even with the above configuration all .ttf files are sent with application/octetstream.</p>
  
  <p>I also have a customHeader section with the following:</p>
  
  <pre><code>&lt;remove name="X-Powered-By" /&gt;
  </code></pre>
  
  <p>which successfully removes the <code>X-Powered-By</code> header for css, png, jpg, gif, ico, .aspx, .htm, .html, shtml, and js files. It does NOT, however, work for .ttf.</p>
  
  <p>Anyone know what I'm doing wrong?</p>
  
  <hr>
  
  <p>My entire web.config just in case:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!-- 
      Note: As an alternative to hand editing this file you can use the 
      web admin tool to configure settings for your application. Use
      the Website-&gt;Asp.Net Configuration option in Visual Studio.
      A full list of settings and comments can be found in 
      machine.config.comments usually located in 
      \Windows\Microsoft.Net\Framework\v2.x\Config 
  --&gt;
  &lt;configuration&gt;
  
    &lt;system.codedom&gt;
      &lt;compilers&gt;
        &lt;compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"&gt;
          &lt;providerOption name="CompilerVersion" value="v3.5" /&gt;
          &lt;providerOption name="WarnAsError" value="false" /&gt;
        &lt;/compiler&gt;
      &lt;/compilers&gt;
    &lt;/system.codedom&gt;
    &lt;!-- 
          The system.webServer section is required for running ASP.NET AJAX under Internet
          Information Services 7.0.  It is not necessary for previous version of IIS.
      --&gt;
    &lt;system.webServer&gt;
      &lt;validation validateIntegratedModeConfiguration="false" /&gt;
      &lt;httpProtocol&gt;
        &lt;customHeaders&gt;
          &lt;remove name="X-Powered-By" /&gt;
          &lt;add name="X-UA-Compatible" value="chrome=1;IE=edge" /&gt;
        &lt;/customHeaders&gt;
      &lt;/httpProtocol&gt;
      &lt;modules&gt;
        &lt;remove name="Session" /&gt;
        &lt;remove name="WindowsAuthentication" /&gt;
        &lt;remove name="FormsAuthentication" /&gt;
        &lt;remove name="PassportAuthentication" /&gt;
        &lt;remove name="RoleManager" /&gt;
        &lt;remove name="UrlAuthorization" /&gt;
        &lt;remove name="FileAuthorization" /&gt;
        &lt;remove name="AnonymousIdentification" /&gt;
        &lt;remove name="Profile" /&gt;
      &lt;/modules&gt;
      &lt;staticContent&gt;
          &lt;remove fileExtension=".ttf" /&gt;
          &lt;mimeMap fileExtension=".ttf" mimeType="font/ttf" /&gt;
      &lt;/staticContent&gt;
    &lt;/system.webServer&gt;
    &lt;runtime&gt;
      &lt;assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" appliesTo="v2.0.50727"&gt;
        &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" /&gt;
          &lt;bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" /&gt;
        &lt;/dependentAssembly&gt;
        &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" /&gt;
          &lt;bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" /&gt;
        &lt;/dependentAssembly&gt;
      &lt;/assemblyBinding&gt;
    &lt;/runtime&gt;
  &lt;/configuration&gt;
  </code></pre>