question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Content type for css fonts

See original GitHub issue

Hi,

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) screenshot 2018-10-01 at 10 05 32

With live-web-server (NOK) screenshot 2018-10-01 at 09 57 00

Thank you

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
75lbcommented, Oct 1, 2018

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.

0reactions
75lbcommented, Oct 1, 2018

Good, pleased to hear that. If you feel the documentation could be more clear, feel free to edit the wiki - thanks. 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found