Web Font WOFF MIME Types for IIS 7.5

Quick reference for adding .woff and .woff2 fonts to IIS 7.5 as MIME types.

You can add the MIME type as a global, or for the specific website. For either, you can add it through IIS Manager or the respective XML config files (web.config, etc.).

MIME Type Text:

.woff = application/font-woff

.woff2 = application/font-woff2

This example shows through IIS 7.5 on Windows 2008 R2 for global usage, not for just a single site.

WebFont MIME Type IIS Part 1 WebFont MIME Type IIS Part 2WebFont MIME Type IIS Part 2

 

Here’s an example of what your WEB.CONFIG file would look like.

<system.webServer>
<staticContent>
<mimeMap fileExtension=”.woff” mimeType=”application/font-woff” />
<mimeMap fileExtension=”.woff2″ mimeType=”application/font-woff2″ />
</staticContent>
</system.webServer>

Add a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.