Angular PWA service worker not refreshing offline when deployed to IIS

umarakmal56j 1 Reputation point
2021-06-10T11:05:29.333+00:00

Basically I have the same issue as this unanswered question describes.

When I am serving our PWA with http-server, everything seems to run fine, but when I deploy it to our live environment which is a Windows Server with IIS it only runs fine online. When I go offline, I cannot refresh the page. The service worker returns status 504 and I can't figure out why.

I'm running out of ideas how to troubleshoot.

Are there any useful guides how to correctly setup Angular apps on IIS? (specifically PWAs with offline capability)

Does anybody have ideas what I could check e.g. in my HTTP headers?

Internet Information Services
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.