offline: Infinity TTL, skip cached files, data version, first-launch preload offer, cache stats

This commit is contained in:
catarrh committed 2026-08-04 01:18:29 +03:00
1 parent ea947ede7a
commit e4ddee924b
7 files changed
+121 -15

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@
const DB_NAME = 'ponomar-cache';
const DB_VERSION = 1;
const STORE_NAME = 'data';
const DEFAULT_TTL_MS = 30 * 24 * 60 * 60 * 1000; // 30 days
const DEFAULT_TTL_MS = Infinity; // never expire — static data
interface CacheEntry {
key: string;