Skip to content

add cache-control at 15 minutes max for v1 handler - #358

Merged
jeesunikim merged 2 commits into
masterfrom
increase-rate-limit
Jul 22, 2026
Merged

add cache-control at 15 minutes max for v1 handler#358
jeesunikim merged 2 commits into
masterfrom
increase-rate-limit

Conversation

@jeesunikim

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds caching for the v1 lumens endpoint with a 5-minute fresh period and 10-minute stale-revalidation window.

Changes:

  • Adds the Cache-Control response header.
  • Verifies the header through integration testing.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
backend/lumens.ts Configures caching for the v1 handler.
test/tests/integration/backend.ts Tests the cache header.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@stellar-jenkins-ci

Copy link
Copy Markdown

@sagpatil
sagpatil requested a review from marcelosalloum July 22, 2026 17:58

@marcelosalloum marcelosalloum left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Plz, feel free to merge it after addressing the comment below.

Comment thread test/tests/integration/backend.ts Outdated
@stellar-jenkins-ci

Copy link
Copy Markdown

@jeesunikim
jeesunikim merged commit 7280be7 into master Jul 22, 2026
6 checks passed
@jeesunikim
jeesunikim deleted the increase-rate-limit branch July 22, 2026 19:29
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.

3 participants