#Edge Storage: TTF Should Have Correct Mime Type (font/ttf)

21 messages · Page 1 of 1 (latest)

worldly folio
#

I noticed that edge storage is returning an incorrect content-type for TTF fonts - application/octet-stream. This makes edge rules such as "font/*" ineffective. There are unfortunately still use-cases for ttf.

charred snow
#

+1 can confirm, I use .ttf as well as .eot, .woff and .woff2, this should be added.

fathom marsh
#

I see, i'll have those fixed internally. If you urgently need a fix you can make an edge rule that sets the correct content-type header.

charred snow
fathom marsh
#

I'll take a look with the team for that as well.

charred snow
charred snow
#

Per IETF RFC 9239 text/javascript is now standard and application/javascript is now considered obsolete

charred snow
charred snow
charred snow
worldly folio
charred snow
#

I was also going to suggest setting type="font/ttf" and preloading the font to avoid issues but I see.

worldly folio
# fathom marsh I'll take a look with the team for that as well.

It might be a breaking change for some (at least for me), since I'm using the content headers returned by edge storage to figure out caching (to reduce the number of edge rules involved). Not a big deal, but it would be nice for a heads up so the rules can be adjusted.

charred snow
#

I always define the content type personally, to avoid MIME sniffing.

worldly folio