export class QueryCache { constructor() { this.entries = new Map(); } getEntry(key) {
const CACHE_NAME = 'swr-api-v1'; const STAMP_HEADER = 'x-cached-at'; async function open() { return caches.open(CACHE_NAME); }