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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • onewebclick@gmail.com

    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.

  • Richard Cornford

    #2
    Re: how to detect the browser cache is full using javascript or HTML?

    onewebclick@gma il.com wrote:[color=blue]
    > 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.[/color]

    No, that would be a significant security violation (being in a position
    to know anything about the state user's computer).
    [color=blue]
    > 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.[/color]

    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).
    [color=blue]
    > Any thoughts ?
    >
    > i googled a lot on this topic but nothing turned out to be
    > a vialb solutoin. any help wpuld be appreciated.[/color]

    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.


    Comment

    Working...