You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add flag to CacheControlInstrumentation to optionally allow max-age of zero (#392)
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`.
Copy file name to clipboardExpand all lines: graphql-java-support/src/main/java/com/apollographql/federation/graphqljava/caching/CacheControlInstrumentation.java
Copy file name to clipboardExpand all lines: graphql-java-support/src/test/java/com/apollographql/federation/graphqljava/caching/CacheControlInstrumentationTest.java
+61-7Lines changed: 61 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ public class CacheControlInstrumentationTest {
29
29
"enum CacheControlScope { PUBLIC PRIVATE }\n"
30
30
+ "directive @cacheControl(maxAge: Int scope: CacheControlScope inheritMaxAge: Boolean) on FIELD_DEFINITION | OBJECT | INTERFACE | UNION\n";
0 commit comments