[PR #10700] feat(console): add SWR caching to changelog endpoints #13529

Closed
opened 2026-02-16 18:18:22 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/10700

State: closed
Merged: No


Summary

  • Add proper SWR caching to /changelog.json with Cloudflare edge caching (cf.cacheTtl) and Cache-Control headers (s-maxage=300, stale-while-revalidate=600)
  • Refactor /changelog page to fetch from /changelog.json instead of calling GitHub API directly
  • Remove duplicate parsing logic from the changelog page since data is now pre-parsed by the JSON endpoint
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/10700 **State:** closed **Merged:** No --- ## Summary - Add proper SWR caching to `/changelog.json` with Cloudflare edge caching (`cf.cacheTtl`) and `Cache-Control` headers (`s-maxage=300, stale-while-revalidate=600`) - Refactor `/changelog` page to fetch from `/changelog.json` instead of calling GitHub API directly - Remove duplicate parsing logic from the changelog page since data is now pre-parsed by the JSON endpoint
yindo added the pull-request label 2026-02-16 18:18:22 -05:00
yindo closed this issue 2026-02-16 18:18:22 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13529