I have an upload script where image files are uploaded and stored as a standard name like image1 or image27 based off the id. But when i upload a new one the cache sees it as the old file and loads it instead of the new uploaded file.
Also I run this code at the top of every page...
header("Cache-control: no-store, no-cache, max-age=1, must-revalidate");
header('Cache-Control: post-check=0, pre-check=0', FALSE);
header('Pragma: no-cache');