0

请教一下,前端发布版本,用户会白屏

 2 years ago
source link: https://www.v2ex.com/t/866738
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  问与答

请教一下,前端发布版本,用户会白屏

  neptuno · 4 小时 58 分钟前 · 720 次点击
我是属于后端,帮我们组前端问一下,现状是每一次发布版本,前端 hash 值改变了,用户点击路由到其他页面,会出现白屏,显示找不到页面。要刷新一下才能解决。我初步想法是每次发布加一个版本号,后端返回版本号,但前端找不到合适的调用时间点。有啥解决方案吗?

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK