gpt4 book ai didi

Angular Universal (SSR) cache don't update(角度通用(SSR)缓存不更新)

转载 作者:bug小助手 更新时间:2023-10-28 09:30:47 28 4
gpt4 key购买 nike



Good,
I have a web with Angular Universal on an Apache server executed through PM2.

很好,我在一台通过PM2执行的阿帕奇服务器上运行了一个带有ANGLE Universal的Web。


When making changes, I generate the new version of the web, upload the files to the hosting and restart the pm2 task

进行更改时,我会生成新版本的Web、将文件上传到主机并重新启动PM2任务


But when accessing the web the changes are not shown. For them to be displayed I have to clear data from the site or force the cache to be cleared.

但当访问网络时,这些变化不会显示出来。要显示它们,我必须清除站点中的数据或强制清除缓存。


For example, in a browser that I haven't used for 2 months, I still get the look it had then, even if I refresh the page.

例如,在我已经两个月没有使用的浏览器中,即使我刷新了页面,我仍然可以看到它当时的样子。


How can I solve that?

我怎么才能解决这个问题?


更多回答

Please provide enough code so others can better understand or reproduce the problem.

请提供足够的代码,以便其他人能够更好地理解或重现问题。

优秀答案推荐
更多回答

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com