Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I was experiencing this same symptom - 404 on woff files in Chrome - and was running an application on a Windows Server with IIS 6.</p> <p>If you are in the same situation you can fix it by doing the following:</p> <h1>Solution 1</h1> <p>"Simply add the following MIME type declarations via IIS Manager (HTTP Headers tab of website properties): <strike>.woff application/x-woff</strike>"</p> <p><strong>Update:</strong> according to <a href="https://stackoverflow.com/questions/3594823/mime-type-for-woff-fonts">MIME Types for woff fonts</a> and <a href="https://stackoverflow.com/a/9484251/326">Grsmto</a> the actual MIME type is <strike>application/x-font-woff (for Chrome at least). x-woff will fix Chrome 404s, x-font-woff will fix Chrome warnings.</strike></p> <p><strong>As of 2017</strong>: Woff fonts have now been standardised as part of the <a href="https://tools.ietf.org/html/rfc8081#section-4.4.5" rel="noreferrer">RFC8081 specification</a> to the mime type <code>font/woff</code> and <code>font/woff2</code>.</p> <p><img src="https://i.stack.imgur.com/2caxh.png" alt="IIS 6 MIME Types"></p> <p>Thanks to Seb Duggan: <a href="http://sebduggan.com/posts/serving-web-fonts-from-iis" rel="noreferrer">http://sebduggan.com/posts/serving-web-fonts-from-iis</a></p> <h1>Solution 2</h1> <p>You can also add the MIME types in the <strong>web config</strong>:</p> <pre><code> &lt;system.webServer&gt; &lt;staticContent&gt; &lt;remove fileExtension=".woff" /&gt; &lt;!-- In case IIS already has this mime type --&gt; &lt;mimeMap fileExtension=".woff" mimeType="font/woff" /&gt; &lt;/staticContent&gt; &lt;/system.webServer&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload