Skip to content

Instantly share code, notes, and snippets.

@rhysgodfrey
Last active August 29, 2015 14:11
Show Gist options
  • Save rhysgodfrey/9b5853b554a3843fdab2 to your computer and use it in GitHub Desktop.
Save rhysgodfrey/9b5853b554a3843fdab2 to your computer and use it in GitHub Desktop.
Allow HTTP Compression for Web Font Files

Allow HTTP Compression for Web Font Files - IIS

The following change will apply to all websites on the server, and requires an IIS Restart.

  1. Open C:\Windows\System32\inetsrv\config\applicationHost.config using notepad
  2. Find the <httpCompression ...> section
  3. Add the entries below above <add mimeType="*/*" enabled="false" /> in the <staticTypes> section
  4. Save the file
  5. Restart IIS (run iisreset from the command line)

Additional Entries:

    <add enabled="true" mimeType="image/svg+xml" />
    <add enabled="true" mimeType="application/vnd.ms-fontobject" />
    <add enabled="true" mimeType="font/otf" />
    <add enabled="true" mimeType="font/x-woff" />

Based on this stackoverflow answer: http://stackoverflow.com/a/23940235/305540

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment