I have created an angular (angular 7) application and then added ng add @angular/pwa
angular PWA library to it.
Now after building it using ng build --prod
and then serving the application to localhost:8080
via node's http-server
, my application is running fine in offline mode in localhost.
But when i build the same application using ng build --prod --base-href /myProject/
to deploy on IIS, application is working fine but when switch to offline mode
using chrome's developer tool, i am getting error HTTP Error 504
.
Please suggest what is causing this strange behavior and how to fix it.