缓存Android中的WebView [英] Caching in Android webview

查看:181
本文介绍了缓存Android中的WebView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

哪一个是更快地加载移动网页和Android中的WebView非移动网页;加载缓存或没有加载,在所有?

Which one is faster way to load mobile web pages and non mobile web pages in Android webview; loading cache or not loading that at all?

什么是推荐的风格来加载?

And what is recommend style to load that?

现在,当我不加载缓存,在所有的非移动网站都更慢加载时相比,我在本地浏览器加载它们。

Right now when I don't load cache at all non mobile sites are much more slower to load than when I load them in native browser.

推荐答案

当然,缓存的做法应该会更快。这是确切的原因缓存是有摆在首位。

Of course, cached approach should be faster. That's the exact reason caching is there in the first place.

但你应该罚款,除非你专门禁用缓存的WebView。如果你不这样做 - 这将使用高速缓存默认

But you should be fine unless you specifically disable caching for webview. If you don't - it will use cache by default.

这篇关于缓存Android中的WebView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆