Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why isn't woff2 in the mimetype directory?

I see support for woff2 in the Chromium source code but I don't see the mimetype registered with the IANA.

http://www.iana.org/assignments/media-types/media-types.xhtml

Think about the correct mime type for WOFF 2.0 files (Google uses font/woff2. W3C recommends application/font-woff2)

https://gist.github.com/sergejmueller/cf6b4f2133bcb3e2f64a

Am I missing something obvious or did this just not happen and people are implementing it?

like image 231
Elijah Lynn Avatar asked Oct 29 '25 08:10

Elijah Lynn


1 Answers

The correct MIME type for .woff and .woff2 font files are font/woff and font/woff2 respectively.

It is important to note that even as application/font-woff may still have support, it has been deprecated in favour of font/woff.

References: IANA on application media type, IANA on font media type, and IETF RFC 8081.

like image 168
nyedidikeke Avatar answered Nov 01 '25 12:11

nyedidikeke



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!