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

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.
主站蜘蛛池模板: 祁连县| 循化| 乐山市| 岑溪市| 中宁县| 岫岩| 梓潼县| 平塘县| 横峰县| 蛟河市| 大同市| 海晏县| 太康县| 砀山县| 塘沽区| 甘肃省| 遂平县| 陵水| 田林县| 山西省| 津市市| 佛山市| 大同市| 蓝山县| 孝义市| 开化县| 恩平市| 剑河县| 寻甸| 大庆市| 庆安县| 迁安市| 新疆| 上犹县| 荔浦县| 荥阳市| 巴里| 昂仁县| 报价| 饶阳县| 保亭|