CacheWebView icon indicating copy to clipboard operation
CacheWebView copied to clipboard

退出webview activity重新进入没走缓存

Open xumoyan opened this issue 4 years ago • 1 comments

退出webview,重新进入资源文件重新加载没走缓存。不知道是不是配置的问题,给看看。 WebViewCacheInterceptor.Builder builder = new WebViewCacheInterceptor.Builder(this); builder.setCachePath(new File(this.getCacheDir(),"cache_path_name")) .setDynamicCachePath(new File(this.getCacheDir(),"dynamic_webview_cache")) .setCacheSize(10241024100) .setConnectTimeoutSecond(20) .setReadTimeoutSecond(20) .setCacheType(CacheType.NORMAL); builder.setAssetsDir("static");

    WebViewCacheInterceptorInst.getInstance().init(builder);

xumoyan avatar Aug 16 '21 02:08 xumoyan

目前试下来 ... 好像只要reload,文件就没有走缓存

outofmemory avatar Sep 23 '21 08:09 outofmemory