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 条回答