Can I view the amount of space used by the built-in HTTP cache, in devtools?
I like to know how much space (while I develop) Chrome is using to cache resources of my app.
In supporting browsers (not Safari or Edge), use this to get a storage estimate:
navigator.storage.estimate().then(estimate => console.log(estimate));
Output signature varies by browser (Chrome 77.x shown here):
{
quota: 599997077913,
usage: 265,
usageDetails: {
indexedDB: 265
},
// ..
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.