Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cloudfront): avoid to sort TTLs when using Tokens in CachePolicy #25920

Merged
merged 6 commits into from
Jun 14, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update text
  • Loading branch information
Tietew committed Jun 9, 2023
commit 85c60d391786253722e2298ace1200dc84f8ed3d
Original file line number Diff line number Diff line change
@@ -150,7 +150,7 @@ describe('CachePolicy', () => {
});
});

test('accepts tokens', () => {
test('sorting TTLs is not performed when using Tokens', () => {
Tietew marked this conversation as resolved.
Show resolved Hide resolved
new CachePolicy(stack, 'CachePolicy', {
cachePolicyName: 'MyPolicy',
minTtl: Duration.seconds(Lazy.number({ produce: () => 30 })),