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.