为什么这种mime类型不正确? [英] Why is this mime type incorrect?

查看:656
本文介绍了为什么这种mime类型不正确?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在实现的HTML5视频无法在Internet Explorer 9中运行.经过一些调试后,我发现mp4文件的mime类型为application/octet-stream.但是,在我的.htaccess文件中,

A HTML5 video I am implementing is not working in Internet Explorer 9. After some debugging, I found that the mime type of the mp4 file is as application/octet-stream. However, in my .htaccess file I have,

AddType video/ogg  .ogv
AddType video/mp4  .mp4
AddType video/webm .webm

在定义哑剧类型时我错过了什么?

What have I missed in defining mime types?

推荐答案

答案是:

您在服务器上添加的MIME类型不能覆盖远程服务器上的MIME类型.如果将其他位置托管的文件存储为其他MIME类型,则它将无法正常工作.确保CDN上的MIME类型正确.

The MIME types you add on your server cannot override the MIME type on the remote server. If the files hosted elsewhere are stored as a different MIME type, then it will not work. Make sure that the MIME type on the CDN is correct.

这篇关于为什么这种mime类型不正确?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆