Application Cache Error event: Invalid manifest mime type (application/x-ms-manifest)

不羁的心 提交于 2019-12-24 20:15:10

问题


I'm on a shared server, and am using

<html manifest="cache.manifest">

and am getting:

Application Cache Error event: Invalid manifest mime type (application/x-ms-manifest) http://www.phillipsenn.com/xxx/cache.manifest

Is this something that my hosting company will have to change?


回答1:


Looks like your web server is IIS (Internet Information Server)

The default MIME extension ".manifest" is reserved for ClickOnce deployment (read http://robindotnet.wordpress.com/2010/06/12/mime-types-for-clickonce-deployment/)

You can use a different extension for your cache, for example ".mf", but your web server needs to know about its MIME type. In the case of Microsoft IIS, it needs to be added to the MIME Types table:

Extension: .mf MIME Type: text/cache-manifest

Once you register the new exception you can rename your manifest file, and update the Markup:



来源:https://stackoverflow.com/questions/8298823/application-cache-error-event-invalid-manifest-mime-type-application-x-ms-mani

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!