Back to Wails

Cache API Demo

v3/examples/web-apis/cache-api/frontend/index.html

2.13.0822 B
Original Source

Cache API Demo

The Cache API provides a mechanism for storing and retrieving network requests and responses. It's commonly used with Service Workers for offline support and performance optimization.

Cache API: checking...

Cache Management

Cache Name Create/Open CacheList All CachesDelete Cache Cache list will appear here...

Add to Cache

URL to Cache Fetch & Cache URLAdd Custom ResponseCache Multiple URLs

Retrieve from Cache

URL to Match Match URLMatch All

Cached Response

Cached Entries (0)

RefreshClear All Entries

Cache-First Strategy Demo

Demonstrates a common caching pattern: try cache first, fall back to network.

Test URL Cache-First FetchNetwork-First Fetch Strategy results will appear here...

API Support

Event Log

Clear Log Cache operations will be logged here...