New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 611967 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Feature



Sign in to add a comment

Display Size of Content Cached in ServiceWorker Cache

Reported by korc...@gmail.com, May 14 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36

Steps to reproduce the problem:
1. Install ServiceWorker
2. Make Request
3. Cache Response
4. Refresh Page
5. Do the same Request as in step 3
6. Response Size is not displayed in Resources > Cache Storage neither Network Tab of Chrome Developer Tools

What is the expected behavior?
It will be super useful if the response size will be displayed in Resources > Cache Storage AND Network Tab of Chrome Developer Tools

What went wrong?
Response Size is not displayed in Resources > Cache Storage neither Network Tab of Chrome Developer Tools

Did this work before? No 

Chrome version: 50.0.2661.94  Channel: stable
OS Version: OS X 10.11.4
Flash Version: Shockwave Flash 21.0 r0

Nope.
 
Cc: jonathan.garbee@chromium.org
Labels: -Type-Bug -OS-Mac Needs-Feedback OS-All Type-Feature
In what situation does this information provide benefit when developing?

In terms of network, the transfer size is 0 since the request never hit the network.

For showing the size in the cache, there currently aren't any APIs available for this which would make getting the information tricky. Soon the Quota Management API [1] will allow for at least an overview of storage sizes.

[1] https://www.w3.org/TR/quota-api/
Owner: pfeldman@chromium.org
Status: Assigned (was: Unconfirmed)
Size is important. We don't need web-facing APIs to surface it, it just requires work. It is on our radar, thanks for filing.

Comment 3 by korc...@gmail.com, May 16 2016

Thank you.
 Issue 613552  has been merged into this issue.
Cc: -jonathan.garbee@chromium.org
Labels: -Needs-Feedback
Owner: allada@chromium.org
Cc: jsb...@chromium.org
Exposing estimated quota available/used on the Application tab would be great.

https://www.w3.org/TR/quota-api/ is a dead end. The new hotness is https://storage.spec.whatwg.org/#api - navigator.storage.estimate(). We have it behind a flag. 

It uses the same plumbing as the old API though, so devtools could use whatever.
Cc: eostroukhov@chromium.org
created  crbug.com/668283  to track quota UX separately.
Owner: eostroukhov@chromium.org
Status: Fixed (was: Assigned)
Totals for the cache storage can be seen on the "Clear Storage" section of the Application pane.

Sizes of individual chache storage entries are shown in the cache storage entries table.

Sign in to add a comment