Skip to content

Commit

Permalink
chore: update cache control instrumentation documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dariuszkuc committed May 17, 2024
1 parent af4ca9e commit 3efd208
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
* A GraphQL Java Instrumentation that computes a max age for an operation based on @cacheControl
* directives.
*
* By default, this instrumentation will only set the `Cache-Control` `max-age` value IF positive int
* value is provided. If you would rather want to return explicit `max-age=0` values, you need to
* explicitly opt-in to this behavior by specifying `allowZeroMaxAge=true` constructor value.
*
* <p>You can retrieve the "max-age=..." header value with a {@link GraphQLContext}: <code>
* String cacheControlHeader = CacheControlInstrumentation.cacheControlContext(context);
* </code>
Expand Down

0 comments on commit 3efd208

Please sign in to comment.