MIMETYPE 与 Content_type的关系
来源:互联网 发布:it unbelievable 编辑:程序博客网 时间:2024/05/18 11:46
MIME Type 与 Content-Type 的关系
当web服务器收到静态的资源文件请求时,依据请求文件的后缀名在服务器的MIME配置文件中找到对应的MIME Type,再根据MIME Type设置HTTP Response的Content-Type,然后浏览器根据Content-Type的值处理文件。
首先看看tomcat服务器中默认的web.xml中的描述:
<!-- ===================== Default MIME Type Mappings =================== -->
<!-- When serving static resources, Tomcat will automatically generate -->
<!-- a "Content-Type" header based on the resource's filename extension, -->
<!-- based on these mappings. Additional mappings can be added here (to -->
<!-- apply to all web applications), or in your own application's web.xml -->
<!-- deployment descriptor. -->
再看看apache服务器中mime.types的描述:
# This file controls what Internet media types are sent to the client for
# given file extension(s). Sending the correct media type to the client
# is important so they know how to handle the content of the file.
# Extra types can either be added here or by using an AddType directive
# in your config files. For more information about Internet media types,
# please read RFC 2045, 2046, 2047, 2048, and 2077. The Internet media type
# registry is at <http://www.iana.org/assignments/media-types/>.
<!-- ===================== Default MIME Type Mappings =================== -->
<!-- When serving static resources, Tomcat will automatically generate -->
<!-- a "Content-Type" header based on the resource's filename extension, -->
<!-- based on these mappings. Additional mappings can be added here (to -->
<!-- apply to all web applications), or in your own application's web.xml -->
<!-- deployment descriptor. -->
再看看apache服务器中mime.types的描述:
# This file controls what Internet media types are sent to the client for
# given file extension(s). Sending the correct media type to the client
# is important so they know how to handle the content of the file.
# Extra types can either be added here or by using an AddType directive
# in your config files. For more information about Internet media types,
# please read RFC 2045, 2046, 2047, 2048, and 2077. The Internet media type
# registry is at <http://www.iana.org/assignments/media-types/>.
- MIMETYPE 与 Content_type的关系
- image xss 2.各浏览器的content_type与图片实际类型、后缀名的关系
- django1.7以上版本不在写 mimetype 了,需把mimetype改为content_type
- 常用的mimetype集合
- 部分文件的MIMEType
- 获取文件的MIMEType
- 安卓MimeUtils中定义的MimeType和文件扩展名的对应关系
- mimetype
- mimeType
- mimetype
- MIMEType
- CONTENT_TYPE 大全
- HTTP Content_Type
- Android中MimeType的用处
- Android中MimeType的用途
- 获取文件的MimeType类型
- Android获得文件的mimeType
- 23.获取文件的MIMEType
- andriod控制是否执行Onclick点击事件
- 再谈vb中SQL语句中单引号和双引号的区分
- cocos2d-x节点(CCShaderCache.h)API
- cocos2d-x节点(ccGLStateCache.h)API
- cocos2d-x节点(CCGLProgram.h)API
- MIMETYPE 与 Content_type的关系
- 并行编译 Xoreax IncrediBuild
- c语言输入输出缓冲区
- eclipse--默认工作空间更改
- 获取程序路径并去除程序名
- uva 12618 - I Puzzle You
- 站长SEO超级外链工具_V1.1
- Web 服务器被配置为不列出此目录的内容。
- 全新安装discuz x3.1,安装后空白的解决办法!