Clear image cached in a view

Hi everyone, this is my first post in the forum and I think my english is not pretty good. I hope can explain my problem well.

I have a view where I am showing a picture of a profile. In this app we have de possibility for changing the picture using the camera plugin of cordova. When you take a new picture with the camera in the device, the picture up to the server perfertly, but later, when I am loading the new picture the view show me the old picture. I am sure that the picture is cached. For example, if I change the route image.png for image.png?123 I can see the new image, but this is not a solution.

What can I do?


ionic (Ionic CLI) : 4.5.0 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.1


cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : android 7.1.4, browser 5.0.4, ios 4.5.5
Cordova Plugins : cordova-plugin-ionic-webview 2.3.1, (and 12 other plugins)


Android SDK Tools : 26.1.1 (/Users/mac/Library/Android/sdk/)
ios-deploy : 1.9.4
NodeJS : v11.2.0 (/usr/local/bin/node)
npm : 6.4.1
OS : macOS High Sierra
Xcode : Xcode 10.1 Build version 10B61

1 Like

@Luisejo is your issue been resolved? because i’m facing similar issue in my Ionic 4 project.

1 Like

Hey @palvicky0999 thanks for putting up in to this thread. Even i’m facing the same issue in Ionic 4.