GIF动画缓存后,在Firefox中不工作

问题描述:

我有一个GIF动画,循环三次。我在Firefox和Chrome(还没有签其他人),我可以一次,然后查看GIF,如果我重新加载页面,缓存GIF不是动画的。注意到

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.

有没有解决办法?是否有一些关于动画GIF,我可以以prevent这种情况发生?

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

它的超级丑陋的解决方案,但你可以使用这个,如果你调用图像内联,而不是pretty但它的作品!

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="" />

希望帮助