javascript – 服务工作者缓存存储的大小限制是多少?
作者:互联网
参见英文答案 > What is the storage limit for a service worker? 5个
本地存储的大小限制为5M,当我在Service Worker中使用时,是否有任何缓存存储限制?
解决方法:
截至2016年8月15日,Addy Osmani posted:
How much can you store? In Chrome and Opera: Your storage is per
origin (rather than per API). Both storage mechanisms will store data
until the browser 07001 is reached. Apps can check how much quota
they’re using with the Quota Management API. Firefox: no limits, but
will prompt after 50MB data stored. Mobile Safari: 50MB max, Desktop
Safari: unlimited (prompts after 5MB), IE10+ maxes at 250MB and
prompts at 10MB. PouchDB 07002 IDB storage behavior. Future facing:
For apps requiring more persistent storage, see the on-going work on
07003.
每个来源的意思是像localStorage这样的API将与API一样共享存储空间,就像服务工作者Cache一样.
标签:javascript,service-worker 来源: https://codeday.me/bug/20190824/1703985.html