After creating an application using Angular.js, we noticed that sometimes the HTML templates were not loaded. If we looked inside the browser console, we saw the following error code: ERR_CONTENT_DECODING_FAILED
Turns out that this issue was related to the GZIP compression we were using for our static and dynamic content. It’s not exactly clear why this is causing the issue but switching it of in IIS solved the problem for us.
Open up your web.config and disable the compression: