ZephyrZephyr
Guide
Features
API
Examples
GitHub
Guide
Features
API
Examples
GitHub
  • Features

    • Features Overview
    • Caching Rules
    • Fallback Strategies
    • Cache Invalidation
    • Quota Management

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

FeatureDescription
IndexedDB StorageReliable storage with metadata for TTL and access tracking
ETag SupportConditional requests for efficient revalidation
POST CachingIntelligent payload hashing for POST request caching
Debug ModeDetailed logging for troubleshooting
TypeScriptFull type definitions included

Security

Zephyr includes built-in security features:

  • Skips error responses (4xx, 5xx)
  • Respects Cache-Control: no-store
  • Ignores responses with Set-Cookie headers
  • Configurable request timeouts
  • Uses conditional requests (If-None-Match)
Edit this page
Last Updated:: 1/13/26, 2:54 AM
Contributors: labertasch
Next
Caching Rules