/    Sign up×
Community /Pin to ProfileBookmark

Unstalling a stalled animated gif?

How does one force a gif file to reload every time a page is reloaded?

I tried these three in combination with no success:

<META http-equiv=”Pragma” content=”no-cache” />
<META http-equiv=”Cache-Control” content=”no-cache” />
<META HTTP-EQUIV=”expires” CONTENT=”Wed, 26 Feb 2000 08:21:57 GMT” />

to post a comment
HTML

6 Comments(s)

Copy linkTweet thisAlerts:
@ray326Aug 02.2006 — It's a non-looping animation? You could serve it dynamically with a timestamp number as part of the name to make it unique each time. (myani20060801201435.gif)
Copy linkTweet thisAlerts:
@lpragauthorAug 02.2006 — It's a non-looping animation? You could serve it dynamically with a timestamp number as part of the name to make it unique each time. (myani20060801201435.gif)[/QUOTE]

Please explain ...

The gif repeats the same motions over and over.

That's a looping animation?

So, how can I force it to reload each time the page is loaded,

so it does not stall?
Copy linkTweet thisAlerts:
@ray326Aug 02.2006 — Does this happen with all browsers?
Copy linkTweet thisAlerts:
@lpragauthorAug 02.2006 — Does this happen with all browsers?[/QUOTE]

Hello,

I'm not sure.

With the Firefox I'm using, yes:

Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8.0.5) Gecko/20060719 Firefox/1.5.0.5

With Microsoft IE I use to test with, no.

I don't have any other browsers on my box.
Copy linkTweet thisAlerts:
@pacerierAug 05.2006 — i never heard of this problem before but you can try to reload the image src:
[code=html]<body onload="document.picture.src='yourani.gif';">[/code]

does it work?
Copy linkTweet thisAlerts:
@lpragauthorAug 06.2006 — i never heard of this problem before but you can try to reload the image src:
[code=html]<body onload="document.picture.src='yourani.gif';">[/code]

does it work?[/QUOTE]


Hello,

Thanks.

Before I got your above post, I solved the problem of forcing a "no cache"

in Firefox by adding an extra head section at the end of the file:

</font></center></body><head><meta http-equiv="Pragma" content="no-cache"></head></html>
×

Success!

Help @lprag spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.15,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...