Images not being replaced correctly in the App_Data folder
===

Ok, so I have a Visual Studio project and all of the files, images etc that a user uploads get put into the App_Data folder. This worked perfectly fine up until I allowed users to replace images.

I'm having a very specific problem whereby when the image is replaced, because the image is the same file name the image stays the same as the old one. This is fine, this is just because the images are cached. However, you would expect that when I delete the cache and reload the page the new image would be showing. 

Even though the correct image is in the App_Data folder, it will display a broken image icon. I thought this was strange so I rebuilt the project and refreshed the page. This then brings through the new image.

My question is, why does this design require a rebuild to properly refresh the images?

Note: I didn't design it this way, so if I could preserve the images being kept in a App_Data -> Files -> Images -> Image structure that would be perfect. I know they shouldn't be in there!!

