I have a form which users can use to upload images. Once the image is uploaded I use imagemagick to create thumbnails since the users image will be displayed on the page and I want it to load quickly. This all works fine. The problem is, I want the users to be able to rotate the image. I have written a function that basically calls exec() to rotate the image and save it via imagemagick. The function works fine, but since I am saving the file with the same name as the original, browsers seem to be using the cached version instead of the new one. If I force a non-cached refresh (ctrl-f5), I can see the rotated image. Anything else and it seems to use the cached version. You can upload an image and see what I'm talking about here.
I'm wondering if there is any way to force a non-cached page reload or if anyone has any other suggestions?
Thanks