Skip to content

Commit

Permalink
fix: ignore cookies in image cache policy (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
jadenv authored Apr 30, 2024
1 parent 116a195 commit 3a9a84f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NextjsDistribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ export class NextjsDistribution extends Construct {
new cloudfront.CachePolicy(this, 'ImageCachePolicy', {
queryStringBehavior: cloudfront.CacheQueryStringBehavior.all(),
headerBehavior: cloudfront.CacheHeaderBehavior.allowList('accept'),
cookieBehavior: cloudfront.CacheCookieBehavior.all(),
cookieBehavior: cloudfront.CacheCookieBehavior.none(),
defaultTtl: Duration.days(1),
maxTtl: Duration.days(365),
minTtl: Duration.days(0),
Expand Down

0 comments on commit 3a9a84f

Please sign in to comment.