By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,706 Members | 2,030 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,706 IT Pros & Developers. It's quick & easy.

how to detect the browser cache is full using javascript or HTML?

P: n/a
Is there a way to detect a browser cache is full using javascript or
HTML thorugh a web page and inform the user to clear the cache to
improve performance of the website.

It looks like google's gmail use to detect and warn "Gmail says my
browser's cache is full"
http://gmail.google.com/support/bin/...y?answer=14106 then there
should be a way to do it if google can do it.

Any thoughts ?

i googled a lot on this topic but nothing turned out to be a vialb
solutoin. any help wpuld be appreciated.

Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
on*********@gmail.com wrote:
Is there a way to detect a browser cache is full using
javascript or HTML thorugh a web page and inform the user
to clear the cache to improve performance of the website.
No, that would be a significant security violation (being in a position
to know anything about the state user's computer).
It looks like google's gmail use to detect and warn "Gmail
says my browser's cache is full"
http://gmail.google.com/support/bin/...y?answer=14106
then there should be a way to do it if google can do it.
If a resource is configured, has HTTP headers, such that encourage it to
be cached client-side, and the server can determine that it is being
re-requested when it would otherwise be expected to be retrieved from
the cache, then they might decide that they have grounds for concluding
that the browser's cache is full (as the simplest (but a long way from
the only) explanation for why it was being re-requested).

However, the evidence available to them would not actually support that
conclusion, and the if they make such an announcement it would speak of
a comprehension defect in Google's programmers rather than the
availability of a technique for gauging when the cache is full. (A more
cautious announcement, along the lines of; "your browser appears to us
to be behaving as if its cache is full", would be a more realistic
assertion).
Any thoughts ?

i googled a lot on this topic but nothing turned out to be
a vialb solutoin. any help wpuld be appreciated.


There is no valid solution. You cannot determine with certainty the
state of a web browser's cache with scripts, HTML (obviously, as it is a
mark-up language) or any server-side strategy, full stop.

Richard.
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.