Issue metadata
Sign in to add a comment
|
Cache and Quota values are either wrong or very difficult to understand
Reported by
drmrbre...@gmail.com,
Dec 17 2017
|
||||||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.108 Safari/537.36 Steps to reproduce the problem: I reported some observations with a demo and steps to reproduce on an issue that I now realise is marked as closed, so probably nobody will notice. See: https://bugs.chromium.org/p/chromium/issues/detail?id=795134#c5 https://bugs.chromium.org/p/chromium/issues/detail?id=795134#c6 https://bugs.chromium.org/p/chromium/issues/detail?id=795134#c7 What is the expected behavior? As explained in the posts linked above What went wrong? As explained in the posts linked above Did this work before? N/A Chrome version: 63.0.3239.108 Channel: stable OS Version: 6.2 (Windows 8) Flash Version:
,
Dec 18 2017
cc: pwnall@ who had opinions.
,
Jan 2 2018
I got into a situation in my application where navigator.storage.estimate() was reporting I was using 23gb. I went to devtools to see where all that was going, and it was attributing it all to CacheStorage. From inspecting my caches, none of them were using over a few MB. So I'm seeing a factor of over 1000x from what appears to be there, to what its reporting is there. This is causing issues in my application because I'm hitting various Quota errors. I dont think this is actually a devtools issue. I think that CacheStorage is contributing very erroneously to Quota API.
,
Jan 2 2018
,
Jan 2 2018
#3: I think you're hitting a separate Cache Storage bug. I think this issue tracks addressing confusions like the one discussed in https://crbug.com/795735#c5 TL;DR: the backing stores we use involve logs, so the actual disk usage of each storage feature does not precisely match the amount of data stored by the application / user.
,
Jan 2 2018
#5 pwnall@ : how do you explain the repro at https://bugs.chromium.org/p/chromium/issues/detail?id=795134#c9 ?
,
Jan 2 2018
#6: To be clear -- I did not intend to imply that comment #3 does not point to a valid bug. My intention was to state that the #3 seems to describe a bug in cache storage accounting, which is a separate issue (that can be fixed quickly). I think this issue covers the fact that, even with perfect quota accounting, the disk space taken by our backing stores is not perfectly related to the sum of the sizes of the items that the user / application has written to the stores. While this reality is fairly non-negotiable, we would still like to get to a point where our quota system behaves in a way that matches developers' intuition. This is a fairly subtle problem that is unlikely to have a quick and easy fix.
,
Jan 2 2018
Leaving comment #3 of this thread aside, how would you categorise the behaviour seen in the following (and other related repros in that thread): https://bugs.chromium.org/p/chromium/issues/detail?id=795134#c9 Bug, or just a mismatch between developer expectation and reality?
,
Jan 3 2018
#8: I'm afraid it's all mismatch between developer expectations and reality. One of my colleagues will follow up on that bug shortly. In general, please try to file one bug per issue (visible issue with a different repro). I would rather close bugs as duplicate than have to look for repros in the middle of a bug thread. Thank you for reporting bugs!
,
Jan 3 2018
pwnall@ well if this isn't a browser bug, then hopefully you or your colleague will be able to educate us as to how to alter our code to prevent the Cache Usage from increasing uncontrollably (until it hits the Quota limit) in the repro provided at https://bugs.chromium.org/p/chromium/issues/detail?id=795134#c9. So far as I can see, that repro is just mimicking "normal" behaviour (open tab, load page, close tab, repeat) and yet the cache usage just keeps rising. There must be some way of forcibly recovering the cache storage that is being reported as "used" which actually isn't?
,
Jan 3 2018
#10: The only increasing storage usage I see when using the page linked to from https://bugs.chromium.org/p/chromium/issues/detail?id=795134#c9 is IndexedDB usage, not CacheStorage usage. I believe that it's a separate issue, and (if it's a bug) it needs to be filed separately.
,
Jul 30
Duplicating into issue 847462 which details a feature request for clarifying quota usage by opaque responses |
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by vamshi.k...@techmahindra.com
, Dec 18 2017Components: Blink>Storage>CacheStorage
Labels: Needs-Triage-M63