Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

服务器端渲染 如果 /build 目录有两套build代码共存,为啥刷新两套分别显示 #36

Open
lee-my opened this issue May 17, 2019 · 1 comment

Comments

@lee-my
Copy link

lee-my commented May 17, 2019

场景:
正式线 有两台服务器
线上两个版本代码共存在build目录,当时因为为了防止cdn缓存

出现情况:
刷新页面,有时候访问旧版js,有时候访问新版js
请问 服务器端渲染这块怎么判断要加载哪个js的? 为什么会出现这个情况?

@JasonBoy
Copy link
Owner

2套代码你得自己控制分别进入哪个目录去拿吧,而且要保证多台机器用的是同样的打包出来的文件(hash一样)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants