Skip to content

fix(iran): bypass stale CDN cache for iran-events endpoint#524

Merged
koala73 merged 1 commit intomainfrom
fix/iran-events-cdn-bust
Feb 28, 2026
Merged

fix(iran): bypass stale CDN cache for iran-events endpoint#524
koala73 merged 1 commit intomainfrom
fix/iran-events-cdn-bust

Conversation

@koala73
Copy link
Owner

@koala73 koala73 commented Feb 28, 2026

Summary

  • Vercel CDN cached empty {events:[],scrapedAt:0} from the pre-Redis deployment with slow tier (stale-if-error=1800)
  • Even after PR fix: iran-events handler reads from Redis instead of scraping #518 deployed, some CDN edge nodes keep serving stale data
  • Adds ?_v=2 query param to force CDN cache miss on a fresh key
  • Temporary fix — can remove once stale entries expire

Test plan

  • Deploy to production
  • Verify /api/conflict/v1/list-iran-events?_v=2 returns 93 events
  • Confirm Iran Attacks markers appear on map

The CDN cached empty {events:[],scrapedAt:0} from the pre-Redis
deployment and Vercel deploy didn't purge all edge nodes. Add ?_v=2
query param to force cache miss until CDN naturally expires the
stale slow-tier entry.
@vercel
Copy link

vercel bot commented Feb 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
worldmonitor Building Building Preview, Comment Feb 28, 2026 10:26am
worldmonitor-finance Building Building Preview, Comment Feb 28, 2026 10:26am
worldmonitor-happy Building Building Preview, Comment Feb 28, 2026 10:26am
worldmonitor-startup Building Building Preview, Comment Feb 28, 2026 10:26am

Request Review

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