官术网_书友最值得收藏!

Referencing the web manifest file

The web manifest file must be referenced in the document's HEAD, as mentioned in the following code:

<head> 
   .... 
  <link rel="manifest" href="manifest.json"> 
</head> 

Manifests should be served using the application/manifest+json MIME type. This is an important setting because it is often overlooked.

You should research how to define or add MIME types in your web server of choice.

Many servers block requests to files based on their type by default. This often leads to manifest files returning 404 or 403 type status codes. I see similar issues raised when PDF documents need to be served. You may need to coordinate with your network administrators or devops team to make sure that your servers are properly configured.

Do not cache the web manifest file using your service worker. You may not be able to update the file without updating your service worker. They should remain decoupled.
主站蜘蛛池模板: 孟津县| 徐汇区| 龙岩市| 财经| 民权县| 霸州市| 陆河县| 莎车县| 开原市| 集安市| 南宁市| 北安市| 监利县| 裕民县| 寿光市| 泾阳县| 鄢陵县| 泸西县| 扶余县| 福州市| 宜丰县| 鲁山县| 陇川县| 武乡县| 荔浦县| 新泰市| 长葛市| 永定县| 辽宁省| 尚义县| 科技| 右玉县| 墨玉县| 息烽县| 郑州市| 和龙市| 育儿| 红原县| 凭祥市| 伊通| 金秀|