472,126 Members | 1,427 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,126 software developers and data experts.

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 3062
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 leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.