在 Azure IIS 上启用 gzip 时无法在页面上找到 Angular

Could not find Angular on page when enabling gzip on Azure IIS

我刚刚在 Azure IIS 上启用了 gzip http 压缩。我正在提供一个 AngularJS 网页。我突然得到:

Could not find Angular on page

我进行的每个量角器 e2e 测试

gzip 压缩已启用,在我的本地环境中一切正常

其实gzip压缩是默认开启的,不需要任何操作,可以参考 and gzip compression in Windows Azure Websites的回答。

根据你的错误提示,似乎是Angular库文件的路径问题。您能否仔细检查您的 js 库路径,或者您能否与我们分享您的 code/project 结构以进一步排除故障?