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
Copy file name to clipboardExpand all lines: graphql-java-support/src/main/java/com/apollographql/federation/graphqljava/caching/CacheControlInstrumentation.java
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,10 @@
18
18
* A GraphQL Java Instrumentation that computes a max age for an operation based on @cacheControl
19
19
* directives.
20
20
*
21
+
* By default, this instrumentation will only set the `Cache-Control` `max-age` value IF positive int
22
+
* value is provided. If you would rather want to return explicit `max-age=0` values, you need to
23
+
* explicitly opt-in to this behavior by specifying `allowZeroMaxAge=true` constructor value.
24
+
*
21
25
* <p>You can retrieve the "max-age=..." header value with a {@link GraphQLContext}: <code>
0 commit comments