Angular应用程序必须在新部署后清除缓存

我们有一个Angular 6应用程序.它在Nginx上投放.并且SSL已启用.

We have an Angular 6 application. It’s served on Nginx. And SSL is on.

当我们部署新代码时,大多数新功能都可以正常工作,但不能进行某些更改.例如,如果前端开发人员更新并部署服务连接,则用户必须打开隐身窗口或清除缓存以查看新功能.

When we deploy new codes, most of new features work fine but not for some changes. For example, if the front-end developers update the service connection and deploy it, users have to open incognito window or clear cache to see the new feature.

哪些类型的更改不会自动更新?他们为什么与众不同?

What type of changes are not updated automatically? Why are they different from others?

避免该问题的常见解决方案是什么?

What’s the common solution to avoid the issue?



 1 条回答