MIMEType:文件媒体类型,浏览器可以根据MIME类型,选择以何种形式读取和显示文件。
-
常见的MIME类型:
‘xml’ => ‘application/xml,text/xml,application/x-xml’
‘json’ => ‘application/json,text/x-json,application/jsonrequest,text/json’
‘js’ => ‘text/javascript,application/javascript,application/x-javascript’
‘css’ => ‘text/css’
‘rss’ => ‘application/rss+xml’
‘yaml’ => ‘application/x-yaml,text/yaml’
‘atom’ => ‘application/atom+xml’
‘pdf’ => ‘application/pdf’
‘text’ => ‘text/plain’
‘image’ => ‘image/png,image/jpg,image/jpeg,image/pjpeg,image/gif,image/webp,image/’
‘csv’ => ‘text/csv’
‘html’ => 'text/html,application/xhtml+xml,/*’