When I upload an image and return to the page the image is presented on, it will show the old image.
I know this is because I upload it with the same name as the old image.
I could solve this by using a different name, but isn't there some other way.
I have tried to use .setLastModified(new Date now.getTime()), but that didn't seem to work.
posted 7 years ago
Did you close the fileoutputstream of the image file after writing?
Did you disable the browser cache by adding response headers accordingly?