You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default the configurations from this repository ensure that
`.eot` files are served with the `application/vnd.ms-fontobject`
media type, compressed, and with far future expires headers.
However, not all users use all the configurations provided by
this project, or in some cases, the headers are overwritten from
the level "beneath" Apache (e.g.: from `php`).
Looking at the results from the HTTP Archive¹ from 15.10.2014:
+----+--------------------+---------------------------------+
| | number of requests | media type |
+----+--------------------+---------------------------------+
| 1 | 7406888 | image/jpeg |
| | ... | ... |
* | 10 | 683558 | font/eot |
| | ... | ... |
* | 17 | 176674 | application/vnd.ms-fontobject |
| | ... | ... |
+----+--------------------+---------------------------------+
it's clear that the `font/eot` media type is used way more often
than the IANA registered² `application/vnd.ms-fontobject`.
Other incorrect/unofficial media types are also used, but their
usage is either wrong or low enough to not justify their addition.
+----+--------------------+---------------------------------+
| | number of requests | media type |
+----+--------------------+---------------------------------+
| 1 | 683558 | font/eot |
| 2 | 176674 | application/vnd.ms-fontobject |
| | ... | ... |
| 6 | 9950 | text/html |
| 7 | 1062 | x-font/eot |
| | ... | ... |
| 10 | 400 | application/vnd.bw-fontobject |
| | ... | ... |
| 15 | 86 | application/x-font-eot |
| | ... | ... |
| 17 | 44 | application/font-eot |
| | ... | ... |
+----+--------------------+---------------------------------+
Because of the things stated above, the changes from this
commit will ensure that Apache will serve anything labeled with
the `font/eot` compressed and with far future expires headers.
- - - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - -
¹ https://www.igvita.com/2013/06/20/http-archive-bigquery-web-performance-answers/
Query used for the first table:
select count(requestid) as number_of_requests,
mimetype as media_type
from [httparchive:runs.2014_10_15_requests]
group by media_type
order by number_of_requests desc;
Query used for the second table:
select count(requestid) as number_of_requests,
mimetype as media_type
from [httparchive:runs.2014_10_15_requests]
where (lower(mimetype) contains "eot") or
(lower(mimetype) contains "vnd.ms-fontobject") or
(
regexp_match(lower(url), r'\.eot$') or
regexp_match(lower(url), r'.eot\?')
)
group by media_type
order by number_of_requests desc;
² http://www.iana.org/assignments/media-types/application/vnd.ms-fontobject
0 commit comments