I have website where every user have a cover image in profile page and it's name constant every time main_cover.jpg
,
my problem that every time user upload image the image not show because old image cached in browser and i must do ctrl+f5 to recache the page to show the new image ,
so i want browser to cache image every time but show new image when upload and i don't want to use datatabase to save new image name i want to use just this name main_cover.jpg
.
<?php
echo '<img src="main_cover.jpg" alt="'.$username.'" >';
?>