offline: Infinity TTL, skip cached files, data version, first-launch preload offer, cache stats
This commit is contained in:
1 parent
ea947ede7a
commit
e4ddee924b
7 files changed
+121
-15
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user