How to cache images locally?

Of course the webview has its own cache so requests for the same URI doesn’t necessarily hit the pipe every time. But it would be much nicer if I had a local cache I can control. Are there any good implementations I should look at that take care of the complexity this adds for me?

As an added, optional requirement it would be nice if I could add some of the pictures I know the app will need to the app bundle when I upload the app to the app store, so not all requests have to be made when the app is first started. (Also: How is this called?)

ionic-image-loader by @ihadeed sounds like what you need.
I haven’t tested it but the imageLoader.preload('http://path.to/image.jpg') probably also works with local images from your app bundle.

3 Likes