Skip to content
This repository was archived by the owner on Feb 1, 2025. It is now read-only.

Commit 4797ecd

Browse files
Luciano Alfarosladg
authored andcommitted
fixing API cache default
1 parent f286011 commit 4797ecd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/cdk/utils/cfnDistro.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export const setupCfnDistro = (
6161
const apiCachePolicy = new CachePolicy(scope, 'NextApiCachePolicy', {
6262
...defaultCacheOptions,
6363
maxTtl: Duration.seconds(0),
64+
defaultTtl: Duration.seconds(0),
6465
})
6566

6667
// Public folder persists names so we are making default TTL lower for cases when invalidation does not happen.

0 commit comments

Comments
 (0)