What if we do caching?
Cache the fetched result and only update if the next request for content done after a minute or two... else send the cached data.
3 votes · 3 up · 0 down
What if we do caching?
Cache the fetched result and only update if the next request for content done after a minute or two... else send the cached data.
🤖 OpenChaos Bot
Summary: This PR prioritizes using a user's OAuth token (from a cookie) for GitHub API requests over the shared GITHUB_TOKEN, to preserve the budget for unauthenticated visitors. It also makes the getHeaders function async to support cookie access.
Files changed: 1 (src/lib/github.ts)
Vibe: Sneaking cookies into the chaos, hoping the gatekeeper doesn't notice.
What if we do caching?
Cache the fetched result and only update if the next request for content done after a minute or two... else send the cached data.
🤖 OpenChaos Bot
Summary: This PR prioritizes using a user's OAuth token (from a cookie) for GitHub API requests over the shared GITHUB_TOKEN, to preserve the budget for unauthenticated visitors. It also makes the getHeaders function async to support cookie access.
Files changed: 1 (src/lib/github.ts)
Vibe: Sneaking cookies into the chaos, hoping the gatekeeper doesn't notice.