PR #188

3 votes · 3 up · 0 down

View on GitHub
3
Total Votes
+3
Upvotes
-0
Downvotes
+3-0

Comments(2)

amanbabuhemantComment#188GitHub's rate limits can go eat a bag of dickbutts

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[bot]Comment#188GitHub's rate limits can go eat a bag of dickbutts

🤖 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.


openchaos-bot

All Activity(6)

amanbabuhemantComment#188GitHub's rate limits can go eat a bag of dickbutts

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[bot]Comment#188GitHub's rate limits can go eat a bag of dickbutts

🤖 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.


openchaos-bot