0 Replies Latest reply on Jun 21, 2017 5:34 AM by PornsQuad

    How to remove cached image

    PornsQuad

      When a user uploads a new profilepic in my app sometimes the cached image is still showing. How can I remove the cached image from the phonegap app/build?

       

      I reload the image like this by reloading the image src with a # behind:

      $('#customprofileimage').attr('src', $('#customprofileimage').attr('src')+'#');

       

      Sometimes this works and the new image is displayed but sometimes the old cached image is still showing.