Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect the subgraph response's Cache Control header while setting the TTL #542

Closed
ardatan opened this issue Jan 27, 2025 · 0 comments · Fixed by ardatan/graphql-mesh#8334
Assignees

Comments

@ardatan
Copy link
Member

ardatan commented Jan 27, 2025

Today let's say we have an Apollo Server based subgraph setting the default TTL to 5 seconds, and if you use it with response caching plugin (even with http caching plugin), it caches the response in infinite of time(as default/global TTL is infinity in response caching plugin). So the changes in the PR inherit the TTL from subgraph responses to calculate a proper TTL.
ardatan/graphql-mesh#8334

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 a pull request may close this issue.

1 participant