Browser Storage Inspector - Cache Header Builder
Inspect LocalStorage, SessionStorage, Cookies, and Cache API quotas. Generate optimized Cache-Control headers for SEO and performance.
- LS Items: 0
- SS Items: 0
- Cookies:
- Cache Buckets: -
| Key | Value | Size | Action |
|---|
| Key | Value | Size | Action |
|---|
| Name | Value | Action |
|---|
| URL | Type | Size (Est) |
|---|---|---|
| Select a cache bucket above to inspect entries. | ||
About
This tool serves as a microscopic lens for your browser's client-side storage mechanisms. In modern web development, managing the client-side state is critical for performance and user experience. Browsers enforce strict Quotas on the amount of data an origin can store, typically ranging from 10 to 50 GB depending on the device and browser heuristic.
Understanding the distinction between LocalStorage (synchronous, persistent), SessionStorage (tab-scoped), and the Cache API (network request storage) is vital for debugging Progressive Web Apps (PWAs) and complex Single Page Applications. This utility allows you to inspect, visualize, and clear these data silos instantly.
Additionally, the integrated Cache-Control Architect generates valid HTTP headers. Misconfigured headers (e.g., missing immutable on static assets) are a primary cause of poor Core Web Vitals scores. This tool validates your caching strategy against industry best practices.
Formulas
The browser storage quota usage is often calculated using the Storage Manager API. The usage percentage U is derived as:
For HTTP Caching, the freshness_lifetime is determined by the max-age directive. If age is less than freshness_lifetime, the browser serves from cache:
Where max_age is defined in seconds (e.g., 31536000 for 1 year).
Reference Data
| Storage Type | Persistence | Capacity (Est.) | Scope | Access Speed |
|---|---|---|---|---|
| LocalStorage | Forever (until clear) | 5 MB | Origin (Tab Shared) | Fast (Sync) |
| SessionStorage | Tab Lifetime | 5 MB | Tab Only | Fast (Sync) |
| Cookies | Set by Expiry | 4 KB | Origin + Server | Slow (Network) |
| Cache API | Forever (until clear) | 1 - 20 GB | Origin (Worker) | Medium (Async) |
| IndexedDB | Forever | Disk Quota | Origin | Medium (Async) |