2

How can gzip compression be enabled for served .otf fonts?

It's an ASP.NET MVC website (Umbraco, but I don't think it's relevant).

I'm using two .otf fonts from typography.com, that are served by IIS (locally or from an Azure website) without applying gzip compression.

I tried in web.config, system.webServer section to set the fonts as mimetype application/font-sfnt or font/otf.

Using the httpCompression settings from ASP-NET-MVC-Boilerplate

It works for everything but the .otf fonts.

Attila Szasz
  • 3,033
  • 3
  • 25
  • 39

0 Answers0