leeming Posted October 20, 2006 Share Posted October 20, 2006 i have this picture that is made using the imagepng() function.. but im having a few users report to me that they are seeing an outdated version of the picture (and im guessing its cos its been cache on their machine).. is there any way i can made it so this doesnt happen? Quote Link to comment Share on other sites More sharing options...
Barand Posted October 20, 2006 Share Posted October 20, 2006 Are you using imagepng($im, $filename) to write the the image to a file then displaying the resultant file <img src='filename.png'>or are you displaying the dynamic image<img src='myimage.php'>I was under the impression that if it's the latter it cannot be cached as the image file doesn't exist until it is created on-the-fly. Quote Link to comment Share on other sites More sharing options...
leeming Posted October 22, 2006 Author Share Posted October 22, 2006 [quote author=Barand link=topic=112131.msg455136#msg455136 date=1161372394]Are you using imagepng($im, $filename) to write the the image to a file then displaying the resultant file <img src='filename.png'>or are you displaying the dynamic image<img src='myimage.php'>I was under the impression that if it's the latter it cannot be cached as the image file doesn't exist until it is created on-the-fly.[/quote]its shown as a .png, because it saves load time every time a page is viewed... and the picture is only updated as updates happen Quote Link to comment Share on other sites More sharing options...
dark dude Posted October 22, 2006 Share Posted October 22, 2006 Not sure if this might work, but have you tried using the <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> html tag? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.