-
-
Notifications
You must be signed in to change notification settings - Fork 639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SVG as image mimetype #28
Comments
@matthewlein You are most probably using Apache < v2.2.0. For the Apache versions that we support, Apache already provides that by default. |
My httpd -v says |
@matthewlein hmm, that is weird. Can you provide more details? What OS are you using? Are you using other configs? etc. |
I don't have a lot of server-fu, but I got these details If there's anything specific you want me to dig up, I can. Plesk does the multiple domains setup, so it may be involved in some way. This was a fresh site, no special configs at all, its a super basic single html page. |
Also just dug through The issue is here if anyone else needs the fix. You can decide if you want to roll it back to include it. IMO it doesn't hurt to have it, unless there is some performance hit. |
@matthewlein isn't it something like
@matthewlein great, thanks! Can you also look and see if the other two listed here are present or not?
@matthewlein will reintroduce it / them. |
Sure. |
Not all Apache `v2.2.x+` servers seem to have the following `filename expression` to `content type` mappings: * `ico` ↔ `image/x-icon` * `svg` ↔ `image/svg+xml` Thanks @matthewlein. Ref: #28. Close: #28.
Thanks @matthewlein, really appreciate your help! |
I just uploaded a site using the stock htaccess, and the site uses a logo img with an svg source
<img src="img/logo.svg">
Chrome was giving me the old:
Resource interpreted as Image but transferred with MIME type text/xml
Simple fix was adding
AddType image/svg+xml svg
in my case on line 171
server-configs-apache/.htaccess
Line 171 in 9fe2b7f
Now that people will be using SVG more often and in different ways: img, svg, object, background image, it might be good to include this as a default. I'm not sure if any others MIME types are needed for other use cases.
The text was updated successfully, but these errors were encountered: