应用程序缓存错误事件:无效的清单mime类型(application/x-ms-manifest) [英] Application Cache Error event: Invalid manifest mime type (application/x-ms-manifest)

查看:202
本文介绍了应用程序缓存错误事件:无效的清单mime类型(application/x-ms-manifest)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在共享服务器上,正在使用

I'm on a shared server, and am using

<html manifest="cache.manifest">

正在得到:

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?

推荐答案

好像您的Web服务器是IIS(Internet信息服务器)

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

默认的MIME扩展名".manifest"保留用于ClickOnce部署(请阅读 http://robindotnet.wordpress.com/2010/06/12/mime-types-for-clickonce-deployment/)

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

您可以为缓存使用其他扩展名,例如".mf",但是您的Web服务器需要知道其MIME类型.对于Microsoft IIS,需要将其添加到MIME Types表中:

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:

扩展名:.mf MIME类型:text/cache-manifest

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

注册新的异常后,您可以重命名清单文件,并更新标记:

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

这篇关于应用程序缓存错误事件:无效的清单mime类型(application/x-ms-manifest)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆