Servers serving Single Page Apps should rewrite all url requests to index.html
We need this for deeplinlks to work which give a great future to PWA (and other apps)
Likely your server does not and gives the 404
I think there was a similar post recently with a nice link to the angular.io site explaining the various configurations for servers