This is the usual SVG mime type:
image/svg+xml
And it works great. However, when embedding an SVG font, chrome tells you the mime type is incorrect, obviously because you return a font instead of an image.
Is there any universal mime type? is chrome wrong? is application/svg+xml
accepted somehow?
I guess this is still a gray area in HTML5 but someone here might know.
There's only one registered mediatype for SVG, and that's the one you listed, image/svg+xml
. You can of course serve SVG as XML too, though browsers tend to behave differently in some scenarios if you do, for example I've seen cases where SVG used in CSS backgrounds fail to display unless served with the image/svg+xml
mediatype.
Success story sharing
font/svg+xml
or similar at the moment however (in theory any mediatype ending with+xml
should work as long as the svg content is correct). If Chrome (or the webkittens) want to push for a new mediatype just for svg fonts I've not seen such a request on the www-svg mailinglist yet.