Safari的IndexedDB 50MB限额:按单域名还是设备总容量计算?
Great question—this is a common point of confusion with browser storage limits, so let’s break it down clearly:
The 50MB IndexedDB storage limit in Mobile Safari applies per individual domain, not as a total cap across all websites you visit.
To use your exact example:
- Mobile Safari will let
facebook.comstore up to 50MB of IndexedDB data - It will also let
spotify.comstore a full, separate 50MB of IndexedDB data - These limits are completely independent—one domain’s storage usage doesn’t eat into the allocation of another.
Also, keep in mind that all third-party browsers on iOS (like Chrome) are required to use Apple’s WebKit engine under the hood. That means they share the same per-domain 50MB IndexedDB limit as Mobile Safari.
If a site tries to go beyond its per-domain limit, the browser will usually prompt you to grant permission for increased storage on that specific site—though there’s no guarantee users will approve the request.
内容的提问来源于stack exchange,提问作者StuperUser

