我能在开发工具中查看内置HTTP缓存使用的空间吗?
我想知道Chrome在缓存我的应用程序资源时使用了多少空间(在开发过程中)。
最初的回答:
我能在开发工具中查看内置HTTP缓存使用的空间吗?
我想知道Chrome在缓存我的应用程序资源时使用了多少空间(在开发过程中)。
最初的回答:
navigator.storage.estimate().then(estimate => console.log(estimate));
输出签名因浏览器而异(此处显示Chrome 77.x):
{
quota: 599997077913,
usage: 265,
usageDetails: {
indexedDB: 265
},
// ..
}