Content type for css fonts
See original GitHub issueHi,
The web server is not setting the content type for css fonts. This is resulting in issues with caching these fonts.
You can reproduce issue with this repo : https://github.com/oliveti/angular-sw-font-bug
Run ng build --prod
and run server from dist.
Or have a look at ‘content type’ missing in screen captures :
With http-server
(OK)
With live-web-server
(NOK)
Thank you
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
font-face - CSS: Cascading Style Sheets - MDN Web Docs
Chrome Edge
@font‑face Full support. Chrome1. Toggle history Full support...
OpenType CBDT and CBLC rendering Full support. Chrome66. Toggle history Full support...
OpenType COLRv0 rendering Full...
Read more >font-face with wrong MIME type in Chrome - css - Stack Overflow
"Note: Because there are no defined MIME types for TrueType, OpenType, and WOFF fonts, the MIME type of the file specified is not...
Read more >Correct MIME types for webfonts? - CSS HTML Validator ...
Re: Correct MIME types for webfonts? The "application/vnd. ms-fontobject" type is on the list but the other fonts are "font/*" types. The above ......
Read more >Correct MIME Type for CSS Web Fonts | jbarker.com / blog
Correct MIME Type for CSS Web Fonts · OpenType (.otf) · TrueType (.ttf ) · Embedded OpenType (.eot).
Read more >Correct the Content-Type headers for @font-face #1673 - GitHub
I'm trying to troubleshoot this for a client - a workaround would be for me to pull down the CSS + Fonts, and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
it’s not a bug, no need for another ticket thanks… If you don’t require blanket CORS behaviour, remove CORS from the stack… Read this wiki page on using middleware then specify a stack which suits you better, e.g. just spa, static and index:
ws --stack spa static index
.Good, pleased to hear that. If you feel the documentation could be more clear, feel free to edit the wiki - thanks. 👍