@@ -0,0 +1,1720 @@
+package com.urucas.plugins;%0A%0Aimport java.io.FileNotFoundException;%0Aimport java.io.IOException;%0A%0Aimport org.apache.cordova.Config;%0Aimport org.apache.cordova.CordovaInterface;%0Aimport org.apache.cordova.CordovaResourceApi;%0Aimport org.apache.cordova.CordovaWebView;%0Aimport org.apache.cordova.IceCreamCordovaWebViewClient;%0Aimport org.apache.cordova.LOG;%0Aimport org.apache.cordova.CordovaResourceApi.OpenForReadResult;%0A%0Aimport android.annotation.TargetApi;%0Aimport android.content.Context;%0Aimport android.net.Uri;%0Aimport android.os.Build;%0Aimport android.util.Log;%0Aimport android.webkit.WebResourceResponse;%0Aimport android.webkit.WebView;%0A%0A@TargetApi(Build.VERSION_CODES.HONEYCOMB)%0Apublic class CordovaWebViewCached extends IceCreamCordovaWebViewClient%7B%0A%0A%09private static final String TAG = %22CordovaWebViewCached%22;%0A%0A%09public CordovaWebViewCached(CordovaInterface cordova, CordovaWebView view) %7B%0A%09%09super(cordova, view);%0A%09%7D%0A%0A%09@Override%0A%09public WebResourceResponse shouldInterceptRequest(WebView view, String url) %7B%0A%0A%09%09ImageCache _cache = ImageCachePlugin.getCache();%0A%09%09%0A%09%09if(url.endsWith(%22.jpg%22) %7C%7C url.endsWith(%22.jpeg%22))%7B%0A%09%09%09String cacheFileName = ImageCache.md5(url);%0A%09%09%09_cache.register(url, cacheFileName, %22image/jpg%22, %22UTF-8%22, 5*ImageCache.ONE_DAY);%0A%09%09%09return _cache.load(url);%0A%09%09%09%0A%09%09%7Delse if(url.endsWith(%22.png%22))%7B%0A%09%09%09String cacheFileName = ImageCache.md5(url);%0A%09%09%09_cache.register(url, cacheFileName, %22image/png%22, %22UTF-8%22, 5*ImageCache.ONE_DAY);%0A%09%09%09return _cache.load(url);%0A%09%09%7Delse if(url.endsWith(%22.gif%22))%7B%0A%09%09%09String cacheFileName = ImageCache.md5(url);%0A%09%09%09_cache.register(url, cacheFileName, %22image/gif%22, %22UTF-8%22, 5*ImageCache.ONE_DAY);%0A%09%09%09return _cache.load(url);%0A%09%09%7D%0A%09%09return super.shouldInterceptRequest(view, url);%0A%09%7D%0A%0A%7D%0A

Create CordovaWebViewCached.java