Skip to content

Commit

Permalink
Fix mistake in docs (#6560)
Browse files Browse the repository at this point in the history
Max age param is in seconds not milliseconds
  • Loading branch information
rorygoodman-toast committed Jun 13, 2022
1 parent 482f0d7 commit e0bc3ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/api/plugin/cache-control.md
Expand Up @@ -24,7 +24,7 @@ const server = new ApolloServer({
plugins: [
ApolloServerPluginCacheControl({
// Cache everything for 1 second by default.
defaultMaxAge: 1000,
defaultMaxAge: 1,
// Don't send the `cache-control` response header.
calculateHttpHeaders: false,
}),
Expand Down

0 comments on commit e0bc3ca

Please sign in to comment.