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

feat: add flag to CacheControlInstrumentation to optionally allow max-age of zero #392

Merged

Conversation

trophied
Copy link
Contributor

@trophied trophied commented May 14, 2024

This change adds an optional flag to CacheControlInstrumentation, allowZeroMaxAge, to allow consumers to configure the behavior such that resolved header can validly resolve a header value of max-age=0.

@trophied trophied force-pushed the update-cache-control-zero-age-behavior branch from 74eca93 to c087a47 Compare May 15, 2024 01:45
@dariuszkuc
Copy link
Member

Linter failed -> can you run ./gradlew spotlessApply (this should apply auto format, there might be other linter issues that need manual fixing).

@trophied
Copy link
Contributor Author

Linter failed -> can you run ./gradlew spotlessApply (this should apply auto format, there might be other linter issues that need manual fixing).

Sure thing, I must have missed re-running after changing some stuff out 👍

@trophied trophied force-pushed the update-cache-control-zero-age-behavior branch from c087a47 to cf1b1ff Compare May 15, 2024 03:24
…-age=0

This change updates the CacheControlInsturmentation class to include an optional flag for allowZeroMaxAge
in order to provide a minimally invasive way to for consumers to configure their cache control to allow for a max-age of 0.
@trophied trophied force-pushed the update-cache-control-zero-age-behavior branch from cf1b1ff to 139c3b2 Compare May 15, 2024 04:21
@trophied trophied requested a review from dariuszkuc May 15, 2024 04:23
@dariuszkuc dariuszkuc enabled auto-merge (squash) May 15, 2024 04:57
@dariuszkuc dariuszkuc merged commit 18cf2a4 into apollographql:main May 15, 2024
5 checks passed
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.

None yet

2 participants