php - picture is not refreshing in my browser -


i trying upload new picture webpage, in browser showing old picture. when check in folder new image being saved, not showing in page. have tried refreshing, not help. still same after shutting down browser. have tested in different browser , still old image. need can now. i'm uploading picture using php coding ajax.

i'm not sure understand trying accomplish, there caching of sorts going on. if you've uploaded image, same file name, , refuses refresh, or don't want depend on refresh of users cache, simple solution append random number end of image src after question-mark. i.e.

<img src="/images/face.png?1234324"> 

...which make browser believe image new image (which is), , thwart it's attempt use browsers cache.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -