469,656 Members | 1,840 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,656 developers. It's quick & easy.

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

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
1 2966
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.

Similar topics

5 posts views Thread by Andy | last post: by
3 posts views Thread by Sergey Surkov | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.