Animated GIF Not Working in FireFox after cache

ToiletOverflow picture ToiletOverflow · May 14, 2010 · Viewed 11.8k times · Source

I have an animated GIF that loops three times. I have noticed in Firefox and Chrome (haven't checked others) that I can view the GIF once and then if I reload the page, the cached GIF is not animated at all.

Is there a solution to this? Is there something about the animated GIF that I could change to prevent this from occurring?

Answer

Jade O'Connor picture Jade O'Connor · May 28, 2010

Its a super ugly solution but you could use this if your calling the image inline, not pretty but it works!

<img src="filename.gif?rand=<?=rand(1,1000);?>" alt="" />

hope that helps