Is the MIME type 'image/jpg' the same as 'image/jpeg'?

 

https://stackoverflow.com/questions/33692835/is-the-mime-type-image-jpg-the-same-as-image-jpeg

 

 

No, image/jpg is not the same as image/jpeg, only image/jpeg is recognised as the actual mime type for JPEG files.

See https://tools.ietf.org/html/rfc3745, https://www.w3.org/Graphics/JPEG/ .

Serving the incorrect Content-Type of image/jpg to IE can cause issues, see http://www.bennadel.com/blog/2609-internet-explorer-aborts-images-with-the-wrong-mime-type.htm

 

posted on 2017-11-07 19:39  蚂蚁flow  阅读(181)  评论(0编辑  收藏  举报

导航