How to test/check use of NSURLCache?

六月ゝ 毕业季﹏ 提交于 2019-12-06 05:44:36

go offline right after you got the page and then reload the web view. the caching should take effect and the page should load I'd think

You can make sure so by analyzing HTTP traffic through a third party software like Charles.

Whenever app will make a request, HTTP Analyzer will pick the request made. If it is using cache, then same will be reflected in it.
(Check the contents of response to confirm the same)

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!