cordova-plugin-sdwebimage
Use SDWebImage + WebViewProxy to cache images in your cordova app.
See benchmarks at https://github.com/revolunet/cordova-plugin-sdwebimage-test
Installation
Install the plugin :
cordova plugin add --save https://github.com/revolunet/cordova-plugin-sdwebimage.git
Usage
// get image as base64cordovapluginsSDWebImage; // prefetch some urls in cachedcordovapluginsSDWebImage; // get info about objects in SDImageCachecordovapluginsSDWebImage; // Clear SDImageCachecordovapluginsSDWebImage;
Also adds a proxy that intercepts calls to http://proxy/http://path/to/image
and return cached version of http://path/to/image
and force 1 year expiration.
Todo :
Licence MIT
Code distributed under MIT licence. Contributions welcome.