Opened 7 years ago

Closed 6 years ago

Last modified 5 years ago

#1243 closed enhancement (fixed)

Add primary media type for font

Reported by: cj.knight@… Owned by:
Priority: minor Milestone:
Component: nginx-core Version: 1.11.x
Keywords: mime mime.types font Cc:
uname -a:
nginx -V: nginx/1.11.13

Description

The IANA has deprecated the use of the application MIME type for fonts in favour of a primary font type.

Source: https://www.iana.org/assignments/media-types/media-types.xhtml#font - (In page search for "deprecated" to find the old entries).

To become compliant, the mime.types file would have the line:

application/font-woff      woff; 

replaced with

font/woff                 woff;
font/woff2                woff2;

Which additionally adds WOFF2 support as per the IANA listing. I note that Google Fonts already serves fonts with this new MIME type.

Change History (6)

comment:1 by Ilyas Bakirov, 7 years ago

IMHO, I suggest to add new mime-types and save old one for compatibility

comment:2 by Maxim Dounin, 6 years ago

See also #1575.

comment:3 by Valentin Bartenev <vbart@…>, 6 years ago

In 7302:bf1a7b363598/nginx:

MIME: changed type for woff to font/woff (ticket #1243).

According to RFC 8081 the previously used application/font-woff
type is deprecated.

comment:4 by Valentin Bartenev <vbart@…>, 6 years ago

In 7303:118885f7a577/nginx:

MIME: added font/woff2 type (ticket #1243).

comment:5 by Valentin V. Bartenev, 6 years ago

Resolution: fixed
Status: newclosed

These changes will be a part of nginx 1.15.1.

comment:6 by Maxim Dounin, 5 years ago

See also #1685.

Note: See TracTickets for help on using tickets.