首页 > 代码库 > 解决ie浏览器下载apk或ipa变为zip

解决ie浏览器下载apk或ipa变为zip

Tomcat/conf/web.xml

<mime-mapping>
  <extension>apk</extension>
  <mime-type>application/vnd.android.package-archive</mime-type>
</mime-mapping>

<mime-mapping>
  <extension>ipa</extension>
  <mime-type>application/vnd.iphone</mime-type>
</mime-mapping>

 

text/vnd.sun.j2me.app-descriptor jad;
application/java-archive jar war ear;
application/x-java-archive-diff jardiff;
application/vnd.android.package-archive apk;
application/vnd.ms-cab-compressed cab;
application/octet-stream bin exe dll;
application/vnd.symbian.install sis;
x-epoc/x-sisx-app sisx;
application/iphone pxl ipa;
application/vnd.palm prc pdb;
application/vnd.webos.ipk ipk;
application/vnd.rim.cod cod;
application/mrp mrp;
x-nokia-widget wgz;
application/octet-stream deb;

解决ie浏览器下载apk或ipa变为zip