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

记录一个致命的问题 #1

Open
litson opened this issue Apr 5, 2016 · 0 comments
Open

记录一个致命的问题 #1

litson opened this issue Apr 5, 2016 · 0 comments

Comments

@litson
Copy link
Owner

litson commented Apr 5, 2016

在上线的时候发现,因为资源部署尚未ready,会出现服务器返回404(页面)的情况,但是传给seed的还是200的状态码,
这导致在上线期间访问的这部分用户,很有可能会被种到ls中的是一个404页面的html代码,而不是我们期望的文件代码;

从组件角度分析,解决方案为在通过AJAX获取文件源码的时候,提供一个钩子,如果钩子返回为false,清除该文件的ls信息(或加入重试机制),
那么再页面刷新的时候会重新获取一次文件信息,直到钩子函数返回结果正确;

从业务角度分享,该方案可解决这部分问题

最终方案还在思考中,期望您的建议!

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

1 participant