Features Overview
Zephyr provides a comprehensive set of features for intelligent caching in web applications.
Core Features
Caching Rules
Define what gets cached using regex patterns. Support for GET and POST requests with TTL-based expiration and LRU eviction.
Fallback Strategies
Configure behavior when cache is stale or network fails. Choose from stale-while-revalidate, stale-if-error, or network-only.
Cache Invalidation
Multiple strategies to keep cache fresh: HTTP headers, manifest polling, custom headers, and manual API.
Quota Management
Monitor and manage storage usage with configurable limits, warnings, and automatic eviction policies.
Technical Highlights
| Feature | Description |
|---|---|
| IndexedDB Storage | Reliable storage with metadata for TTL and access tracking |
| ETag Support | Conditional requests for efficient revalidation |
| POST Caching | Intelligent payload hashing for POST request caching |
| Debug Mode | Detailed logging for troubleshooting |
| TypeScript | Full type definitions included |
Security
Zephyr includes built-in security features:
- Skips error responses (4xx, 5xx)
- Respects
Cache-Control: no-store - Ignores responses with
Set-Cookieheaders - Configurable request timeouts
- Uses conditional requests (If-None-Match)
