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

请问如何用NSURLCache实现这个逻辑 #7

Open
lvming6816077 opened this issue Jun 12, 2016 · 0 comments
Open

请问如何用NSURLCache实现这个逻辑 #7

lvming6816077 opened this issue Jun 12, 2016 · 0 comments

Comments

@lvming6816077
Copy link

1 请求时先判断是否有缓存
2 如果有缓存 先用缓存渲染页面
3 然后接着发送请求最新的数据
4 当数据回来时在用新的数据渲染页面,同时更新缓存
5 如果2没有缓存,就直接发请求渲染

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