CacheWebView icon indicating copy to clipboard operation
CacheWebView copied to clipboard

Custom implement Android WebView cache, offline website, let cahe config more simple and flexible

Results 55 CacheWebView issues
Sort by recently updated
recently updated
newest added

最近发现个很奇葩的缓存问题。问题如下: App被强制关闭后(结束后台任务),缓存不起作用全部从服务器获取。CacheWebView: from server: App普通退出后(后台任务还在),缓存起作用全部从缓存获取,页面加载快。CacheWebView: from cache: 不清楚这是什么机制了? 现在就是首次启动非常慢

Mobile: Android OS: NetWork: URL: LIB Version: ---

For my use case, I want to cache "mp4" files. I use the following code: CacheExtensionConfig extension = new CacheExtensionConfig(); extension.addExtension("mp4"); builder.setCacheExtensionConfig(extension); However, the mp4 files still won't be cached....

退出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(1024*1024*100) .setConnectTimeoutSecond(20) .setReadTimeoutSecond(20) .setCacheType(CacheType.NORMAL); builder.setAssetsDir("static"); WebViewCacheInterceptorInst.getInstance().init(builder);

We are working on the [Algorithmic Complexity Denial-of-Service](https://www.usenix.org/legacy/events/sec03/tech/full_papers/crosby/crosby.pdf) problem and detected a performance bug from your code. We didn’t create a pull request because we're not sure whether this bug...

Mobile: Android OS: NetWork: URL: LIB Version: --- 访问一些html页面的时候,需要用到其中的cookies,但是,通过调试发现,丢失了。

Mobile: Mumu模拟器 Android OS: NetWork: URL: https://cdn-ns-studio.uuzuonline.com/product-4006701/cdn1/res/qufuResource/assets/atlas/xingxing1_ef2fc801.json LIB Version: --- 使用assert本地资源后 从网页加载资源会报跨域问题: XMLHttpRequest cannot load https://cdn-ns-studio.uuzuonline.com/product-4006701/cdn1/res/qufuResource/assets/atlas/xingxing2_7a72cf4d.json. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://nslmh5api.youzu.com' is therefore not...

1、判断是否是http有问题,http和https都是true; 2、添加了移除媒体后缀的方法,方便需要缓存媒体的需求

这段代码是不是没用到 ```java if (isEnableDynamicCache()) { File file = DynamicCacheLoader.getInstance().getResByUrl(mDynamicCacheFile, url); if (file != null) { CacheWebViewLog.d(String.format("from dynamic file: %s", url), mDebug); String mimeType = MimeTypeMapUtils.getMimeTypeFromUrl(url); InputStream inputStream = null; try...

Mobile: Samsung Android OS: 10 NetWork: < WiFi URL: LIB Version: 2.1.8 Hi yale88, I'm analyzing your library. And then I got a question. I attached the code below. **removeHeader("pragma").removeHeader("Cache-Control")**...