I am working on a project using Phonegap, i am creating profile page but the issue is that when user uploads new profile picture, picture successfully uploaded to the server, but it does not show updated picture in the profile, instead it shows the previous image, i know it is using the image from cache that was already there. So how can i avoid using the image from cache, i want new image from the server.
i used following code in ajax call but it is not working.
cache:false
,
Asked
Active
Viewed 24 times
0

Muhammad Husnain Tahir
- 1,009
- 1
- 15
- 28
-
1You could try this http://stackoverflow.com/questions/728616/disable-cache-for-some-images – Castillo Oct 20 '15 at 08:13
-
that is a nice solution i will give it a try @Castillo – Muhammad Husnain Tahir Oct 20 '15 at 08:16