I have a little problem, I could use some help.
I am creating a little app to manage images with the help of php.
This is the workflow:
1 - The form posts to the same page, uploads the image just fine.
2 - Once the image is uploaded it gets a "delete" link to well, delete it, it sends a parameter to the url (in the same page) and then I get the parameter with $_GET and it deletes the image just fine.
3 - When I attempt to upload another image that has the same extension as the one I just deleted it works fine as well but this is the problem:
I need to assign an exact name to the image all the time so when I delete one image and upload a new one it will get the same exact name as the one I've just deleted, so when the new image comes the browser remembers the previous image and it displays the old one, of course if I refresh I can see the new one but that's not the idea.
I thought I could fix this with these tags I found online
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
But they're not really preventing the issue.
Any one knows how to prevent this from happening?