Keep search results with thumbnails until cleared in Settings; add stale-while-revalidate search and longer asset caching

This commit is contained in:
Claude
2026-10-01 22:04:51 +00:00
parent 61a8f63385
commit 14e2307a92
6 changed files with 273 additions and 58 deletions

View File

@@ -46,7 +46,7 @@ const THUMB_HOSTS = new Set([
]);
// Thumbnails accumulate with every card ever scrolled past — keep it bounded.
const THUMB_CACHE_MAX = 800;
const THUMB_CACHE_MAX = 2500;
function isVersionedShellCache(key) {
return key.startsWith(SHELL_CACHE_PREFIX) && !UTILITY_CACHES.has(key);
}