【发布时间】:2019-05-30 04:33:01
【问题描述】:
我在生产环境中有一个 Web 应用程序。用户每天都在使用它,当我发布更新并且用户返回 Web 应用程序时,他/她会查看旧版本的 Web 应用程序。他需要刷新浏览器才能加载新版本。我怎么解决这个问题?每次发布更新(每周 3-4 次)时,我都无法告诉数百名用户刷新页面。我使用以下内容来构建我的前端应用程序:Angular7 with angular-cli。
【问题讨论】:
-
您的应用程序托管在哪里?您需要确保您的 index.html 没有存储在浏览器缓存中。
标签: angular caching browser-cache cache-control angular7