/    Sign up×
Community /Pin to ProfileBookmark

Cache Troubles ???

I posted this in the HTML section, but then realized that it may actually be a JavaScript question/problem. So here it is.

Ok here is the situation:

I have an html page with four links. Each link opens a Flash preloader, that then loads and opens another flash movie. This part works fine.

If these links open the preloaders on the same page the problem doesn’t occur. The problem does occur when they open the preloaders in _blank pages.

The Problem:

When a user opens a preloader, and closes it before it loads all of the way, then does two more times, the next attempt I.E. freezes up and won’t open anything. So when a user attempts to open 4 preloader pages, but closes the first three pages before they load all of the way the fourth freezes up.

If the pages are allowed to load all of the way, the error doesn’t occur. If the pages are loaded into the same page and the back button is used to get back to the links page, the error doesn’t occur.

My Thoughts:

It seems to me that the partially loaded data from the pages is being stored in a cache or something like that and when the amount of info gets to be too much, I.E. doesn’t know what to do.

To end a long winded post. Does this make sense? And is there anyway to clear this cache when a user closes a page? window.onClose.clearCache or something?

Thanks.

_t

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@Bruce_LimOct 18.2004 — Hi

Does anyone know how to write a javascript to clear the cache such that when a back button is clicked, the previous page cannot be loaded.?


Thank alot
Copy linkTweet thisAlerts:
@jbotOct 18.2004 — [i]Originally posted by Bruce Lim [/i]

[B]Does anyone know how to write a javascript to clear the cache such that when a back button is clicked, the previous page cannot be loaded.?[/B][/QUOTE]


JS can't clear the cache. to prevent the previous page loading, put this in its body tag: [B]onload="location.replace('http://www.google.com')"[/B].

or else, put this in the body tag of the current page:

[B]onunload="location.replace('http://www.google.com')"[/B].

;-)

[SIZE=1][I]you can't stop the back button from working unless you use location.replace(URL) for every link. but don't bother, 10% of users don't use JS at all.[/I][/SIZE]
×

Success!

Help @shotsy247 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.18,
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,
)...