Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add configs for common media types used for .woff
By default the configurations from this repository ensure that `.woff` files are served with the `application/font-woff` media type 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 | 35320 | font/woff | | 2 | 22128 | application/x-font-woff | | 3 | 19528 | application/octet-stream | | 4 | 17648 | text/plain | | 5 | 9692 | application/font-woff | | | ... | ... | | 8 | 2496 | font/x-woff | | 9 | 1804 | application/x-woff | | | ... | ... | +---+--------------------+---------------------------------+ one can see that the `font/woff` and `application/x-font-woff` media types are used way more often than the IANA registered² `application/font-woff`. Other incorrect/unofficial media types are also used, but their usage is either wrong or low enough to not justify their addition. Because of the things stated above, the changes from this commit will ensure that Apache will serve anything labeled with the `font/woff` or `application/font-woff` media type with far future expires headers. - - - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - - ¹ https://www.igvita.com/2013/06/20/http-archive-bigquery-web-performance-answers/ Query used: select count(requestid) as number_of_requests, mimetype as media_type from [httparchive:runs.2014_10_15_requests] where (lower(mimetype) contains "woff") or ( regexp_match(lower(url), r'\.woff$') or regexp_match(lower(url), r'\.woff\?') ) group by media_type order by number_of_requests desc; ² http://www.iana.org/assignments/media-types/application/font-woff
- Loading branch information