Skip to content

perf: client-side API response cache (STY-96 step 1) - #15

Merged
stysus merged 1 commit into
mainfrom
development
Aug 18, 2026
Merged

perf: client-side API response cache (STY-96 step 1)#15
stysus merged 1 commit into
mainfrom
development

Conversation

@stysus

@stysus stysus commented Aug 18, 2026

Copy link
Copy Markdown
Owner

Step 1 of LCP/FCP improvement: cache API responses client-side.\n\n- fetchJsonCached with 60s TTL\n- getCategories/getNews use cache (successful only)\n- clearCache(pattern?) export\n\nJANGAN DI-MERGE dulu — menunggu test ulang LCP oleh manager.

Frontend (delegated to agent frontend):
- fetchJsonCached helper with 60s TTL in-memory cache (Map)
- getCategories & getNews use cache; only successful responses cached
- Key per URL (unique per query/category)
- clearCache(pattern?) for invalidation
- Aim: subsequent visits render instantly instead of waiting for API

Verified: svelte-check 0 errors, lint pass, build ok.
@stysus
stysus merged commit 4c83055 into main Aug 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant