我刚刚在 Azure IIS 上启用了 gzip http 压缩。我正在提供 AngularJS 网页。我突然想到:
Could not find Angular on page
在我进行的每一个 Protractor e2e 测试中
gzip 压缩已启用,在我的本地环境中一切正常
最佳答案
其实gzip压缩是默认开启的,无需任何操作,可以引用Azure Web App Not Using GZip Compression的回答和 gzip compression in Windows Azure Websites .
根据你的错误信息,似乎是Angular库文件的路径问题。您能否仔细检查您的 js 库路径,或者您能否与我们分享您的代码/项目结构以进一步排除故障?
关于angularjs - 在 Azure IIS 上启用 gzip 时无法在页面上找到 Angular,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42141284/