I have angular version 12.2. I am using Service Worker. When I run on localhost it works fine and displays install button on browser. But when I deploy it to my server or IIS server, install button doesn't show.
Here is the picture of localhost

I have followed all the steps mentioned on Angular website Getting started with service workers