Hi Keif, I definately tried clearing the cache and checking the temp folder and scanning my hard drive for the filename. I am 99% sure IE caches the img width and height in the programme. Even the next day the image would still load at the same size.
It is an issue, as I make a gallery with a back-end that admins can choose the width/height. As the admin changes the width to their liking, they refresh in IE, and it looks terrible. The solution nutron suggested earlier kind-of patches over the problem (which is much better than how it was before) but it is not ideal, because now the images won't cache at all, and I want them to cache if someone hits the back button. So I have set the random number to change once every hour, which is a trade off, but ideally I want to get IE to stop caching the width/ height, so I can go back to caching/refreshing normally. I know it sounds like I am missing something dumb, but I am not the only one who has had this problem: http://social.msdn.microsoft.com/forums/en-US/iewebdevelopment/thread/0251a835-e1a7-481c-8ad1-bde1f69b8e89/ Any ideas on how to do it better? Thanks, Matt. On Feb 1, 3:21 pm, keif <[email protected]> wrote: > Wait, so it was just a local cacheing issue? I'm curiou sif you tried > to clear cache prior to adding the query string to see if it would > resolve it (unless you're constantly changing the image height/width, > I wouldn't see it as an issue). > > On Jan 30, 6:45 pm, Matt Thomson <[email protected]> wrote: > > > It works!! Thanks so much , I have spent about 5 hours on this bug > > trying every different way to load an image. > > > I used: > > this.randomNumber = Math.floor(Math.random()*1001); > > this.imageToFadeIn = new Asset.images([this.imgPath + '?random=' + > > this.randomNumber]).... > > > I guess it fools IE into thinking the request is original, and it > > doesn't load it's cache of the image dimensions. > > > On Jan 31, 12:22 pm, nutron <[email protected]> wrote: > > > > yes, the query string should be ignored by your server and by the browser. > > > > On Fri, Jan 30, 2009 at 3:19 PM, Matt Thomson (via Nabble) < > > > [email protected]<ml-user%[email protected]> > > > > > wrote: > > > > > In my example this.imgPath is a string that is something like 'http:// > > > >www.site.com/images/myImage.gif' > > > > > Is there a way to append something to this and still get myImage.gif?, > > > > > Thanks, > > > > > Matt > > > > > On Jan 31, 11:55 am, nutron > > > > <anut...@...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2247731&i=0>> > > > > wrote: > > > > > > maybe append a random query string to the path? > > > > > new Asset.images(this.imgPath+'?noCache='+ new Date().getTime()); > > > > > > On Fri, Jan 30, 2009 at 2:45 PM, Matt Thomson (via Nabble) < > > > > > ml-user+93022-1622349...@...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2247731&i=1> > > > > <ml-user%2b93022-1622349...@...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2247731&i=2>> > > > > > > > wrote: > > > > > > > Hi I am loading an image like this: > > > > > > > this.imageTest = new Asset.images(this.imgPath, > > > > > > { > > > > > > onComplete: function() > > > > > > { > > > > > > this.imageTest[0].injectTop(this.container); > > > > > > } > > > > > > }); > > > > > > > If the image is 800 X 600, IE will work properly. If I change the > > > > > > image on the server to to 400 X 300, IE will download the correct > > > > > > image, but it will stretch it out to 800 X 600. > > > > > > > I have tried this method: > > > > > > >http://social.msdn.microsoft.com/forums/en-US/iewebdevelopment/thread... > > > > > > > but obj = document.createElement("<img src='test1.gif'>"); kills the > > > > > > script for me. > > > > > > > I have also tried(inside the onComplete: function() ): > > > > > > > this.ImgToLoad = new Element('img', > > > > > > { > > > > > > 'src': this.imgPath > > > > > > }); > > > > > > this.ImgToLoad.injectTop(this.container); > > > > > > > The strange thing is if I browse to the image on the server IE > > > > > > displays it correctly, and if the image is loaded from the html it > > > > > > displays correctly. When it is loaded with javascript IE gets the > > > > > > imgsize from a couple of days ago, regardless of the size of the > > > > > > image > > > > > > in the cache. > > > > > > > Does anyone have any ideas how to get around this bug, > > > > > > > Thanks, > > > > > > > Matt. > > > > > > > ------------------------------ > > > > > > View message @ > > > > > >http://n2.nabble.com/Internet-explorer-caching-image-size-tp2247600p2... > > > > > > > To start a new topic under MooTools Users, email > > > > > > ml-node+660466-1583815...@...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2247731&i=3> > > > > <ml-node%2b660466-1583815...@...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2247731&i=4>> > > > > > > > To unsubscribe from MooTools Users, click here< (link removed) >. > > > > > > ----- > > > > > The MooTools Tutorial: http://www.mootorial.comwww.mootorial.com > > > > > Clientcide: http://www.clientcide.comwww.clientcide.com > > > > > -- > > > > > View this message in context: > > > >http://n2.nabble.com/Internet-explorer-caching-image-size-tp2247600p2... > > > > > Sent from the MooTools Users mailing list archive at Nabble.com. > > > > > ------------------------------ > > > > View message @ > > > >http://n2.nabble.com/Internet-explorer-caching-image-size-tp2247600p2... > > > > To start a new topic under MooTools Users, email > > > > [email protected]<ml-node%[email protected]> > > > > To unsubscribe from MooTools Users, click here< (link removed) >. > > > > ----- > > > The MooTools Tutorial: http://www.mootorial.comwww.mootorial.com > > > Clientcide: http://www.clientcide.comwww.clientcide.com > > > -- > > > View this message in > > > context:http://n2.nabble.com/Internet-explorer-caching-image-size-tp2247600p2... > > > Sent from the MooTools Users mailing list archive at Nabble.com.
