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

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.
主站蜘蛛池模板: 炉霍县| 莱芜市| 望都县| 东阳市| 青冈县| 门源| 家居| 东乡| 高陵县| 玛多县| 会泽县| 刚察县| 合水县| 个旧市| 英超| 凤翔县| 开封县| 达拉特旗| 南投市| 高州市| 乌兰察布市| 保定市| 田阳县| 松江区| 宁陕县| 长治县| 云梦县| 韩城市| 天气| 阿克苏市| 启东市| 上高县| 宜兰县| 海宁市| 大余县| 洛宁县| 濉溪县| 三门峡市| 大渡口区| 叙永县| 蒙山县|