Browser handling mime-mapping

6060 단어 web.xml
mime-mapping is a node in web.xml, which is used to specify the browser processing method of the corresponding format. The commonly used centralized configuration is as follows:
    <mime-mapping>
        <extension>mhtextension>
        <mime-type>text/x-mhtmime-type>
    mime-mapping>
    <mime-mapping>
        <extension>rarextension>
        <mime-type>application/octet-streammime-type>
    mime-mapping>
    <mime-mapping>
        <extension>isoextension>
        <mime-type>application/octet-streammime-type>
    mime-mapping>
    <mime-mapping>
        <extension>apeextension>
        <mime-type>application/octet-streammime-type>
    mime-mapping>
    <mime-mapping>
        <extension>rmvbextension>
        <mime-type>application/octet-streammime-type>
    mime-mapping>
    <mime-mapping>
        <extension>icoextension>
        <mime-type>image/x-iconmime-type>
    mime-mapping>

    <mime-mapping>
        <extension>docextension>
        <mime-type>application/mswordmime-type>
    mime-mapping>
    <mime-mapping>
        <extension>xlsextension>
        <mime-type>application/vnd.ms-excelmime-type>
    mime-mapping>
    <mime-mapping>
        <extension>pptextension>
        <mime-type>application/vnd.ms-powerpointmime-type>
    mime-mapping>
It can also be used to configure the opening encoding of static pages:
 
 <mime-mapping>
  <extension>htmextension> 
  <mime-type>text/html;charset=gb2312mime-type> 
  mime-mapping>
 <mime-mapping>
  <extension>htmlextension> 
  <mime-type>text/html;charset=gb2312mime-type> 
  mime-mapping>

좋은 웹페이지 즐겨찾기