Opened 3 years ago

Closed 2 years ago

Last modified 22 months 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, 3 years ago

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

comment:2 by Maxim Dounin, 2 years ago

See also #1575.

comment:3 by Valentin Bartenev <vbart@…>, 2 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@…>, 2 years ago

In 7303:118885f7a577/nginx:

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

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

Resolution: fixed
Status: newclosed

These changes will be a part of nginx 1.15.1.

comment:6 by Maxim Dounin, 22 months ago

See also #1685.

Note: See TracTickets for help on using tickets.