Skip to content

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

@xumoyan

Description

@xumoyan

退出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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions