manifest.json与manifest.webmanifest [英] manifest.json vs manifest.webmanifest

查看:669
本文介绍了manifest.json与manifest.webmanifest的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用mongodb,Node.JS和PWA开发应用程序.在开发的第一步中,我不知道manifest.json有什么区别 和manifest.webmanifest.

解决方案

2019年11月更新

MDN(Mozilla开发人员网络)中提到了区别:

.webmanifest扩展名在规范的媒体类型注册"部分中指定(清单文件的响应应返回Content-Type:application/manifest + json).浏览器通常支持带有其他适当扩展名的清单,例如.json(内容类型:application/json).

您可以阅读以下详细信息:媒体类型注册

I'm developing an application using mongodb, Node.JS and PWA. In the first step of developing I don't know what is the difference between manifest.json and manifest.webmanifest.

解决方案

November 2019 Update

The difference is mentioned in MDN (Mozilla Developer Network):

The .webmanifest extension is specified in the Media type registration section of the specification (the response of the manifest file should return Content-Type: application/manifest+json). Browsers generally support manifests with other appropriate extensions like .json (Content-Type: application/json).

You can read more details on: Media Type Registration

这篇关于manifest.json与manifest.webmanifest的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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