rjlowe Posted February 27, 2006 Share Posted February 27, 2006 OK here's the deal,I have a script that I use to upload images and then provide the user with <form> buttons to rotate the image if needed. It works great in FireFox and Opera, but IE refuses to reload the image when the <form> button is pressed. If I use the "Refresh" button, however, then the image updates (and rotates one more iteration - ugh). Is there a way to FORCE IE to reload an image instead of using it's cache? I've tried:<HEAD><META HTTP-EQUIV="Pragma" CONTENT="no-cache"><META HTTP-EQUIV="Expires" CONTENT="-1"></HEAD>and that didn't do anything... I've also tried various tags for the img itself such as just plain HTML, or throwing some php in ( like echo "<img src=".$src.">"; ) and that didn't do anything either.... My main userbase is going to be IE, so just using FF or O isn't really an option either...Another (bad) option would be to change the name of the image in order to force/trick IE into thinking it's a new image file... I would really prefer NOT to do this.Thanks y'all :P Link to comment https://forums.phpfreaks.com/topic/3706-dynamic-images-ie-problem/ Share on other sites More sharing options...
AndyB Posted February 27, 2006 Share Posted February 27, 2006 You can 'trick' browsers into a fresh download if they think it's a different image. Easy way to do that is to give the browser an image name like sameoldimage.jpg?xyz=randomnumber. Link to comment https://forums.phpfreaks.com/topic/3706-dynamic-images-ie-problem/#findComment-12863 Share on other sites More sharing options...
rjlowe Posted February 27, 2006 Author Share Posted February 27, 2006 SWEET! That worked like a charm! Thx! :D[!--quoteo(post=350021:date=Feb 27 2006, 03:30 PM:name=AndyB)--][div class=\'quotetop\']QUOTE(AndyB @ Feb 27 2006, 03:30 PM) [snapback]350021[/snapback][/div][div class=\'quotemain\'][!--quotec--]You can 'trick' browsers into a fresh download if they think it's a different image. Easy way to do that is to give the browser an image name like sameoldimage.jpg?xyz=randomnumber.[/quote] Link to comment https://forums.phpfreaks.com/topic/3706-dynamic-images-ie-problem/#findComment-12864 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.