Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how do i clear the image cache after editing an image on my site?

When Iam updating an image it update successfully but i still see the old image .I don't see the new image until I press ctrl+f5(in IE).. but its works fine in firefox....


Is any solution.....?
Posted

See Clear-Your-Browser's-Cache[^]


NOTE: for client side:

Javascript's reload() is supposed to accept an argument which tells it to do a hard reload, ie, ignoring the cache:

location.reload(true);
I can't vouch for its reliability, you may want to investigate this further.



Cheers,
Edo
 
Share this answer
 
v2
Comments
aravindnass 2-May-13 2:47am    
I need client side code to clear the cache (in IE)
I think problem is of cookie clearence. I suggest you should append some unique id to your image name like datetime which creates unique image name each time page refreshes and browser cookie gets updated and you should see new image. Rest you can google regarding this......
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900