From a1c294463ba07f9271b5cf487cf1b081eec3be76 Mon Sep 17 00:00:00 2001 From: Praveen Gupta Date: Tue, 24 Sep 2024 18:28:14 +0200 Subject: [PATCH] Change the default MinTTL for cloudfront distributions to 0 --- packages/amplify-category-hosting/__mocks__/mockTemplate.json | 2 +- .../amplify-category-hosting/lib/S3AndCloudFront/template.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/amplify-category-hosting/__mocks__/mockTemplate.json b/packages/amplify-category-hosting/__mocks__/mockTemplate.json index 0c2b4d9a251..ee00ae48789 100644 --- a/packages/amplify-category-hosting/__mocks__/mockTemplate.json +++ b/packages/amplify-category-hosting/__mocks__/mockTemplate.json @@ -106,7 +106,7 @@ "ViewerProtocolPolicy": "redirect-to-https", "DefaultTTL": 86400, "MaxTTL": 31536000, - "MinTTL": 60, + "MinTTL": 0, "Compress": true }, "DefaultRootObject": "index.html", diff --git a/packages/amplify-category-hosting/lib/S3AndCloudFront/template.json b/packages/amplify-category-hosting/lib/S3AndCloudFront/template.json index 636820c2910..262dca1c423 100644 --- a/packages/amplify-category-hosting/lib/S3AndCloudFront/template.json +++ b/packages/amplify-category-hosting/lib/S3AndCloudFront/template.json @@ -134,7 +134,7 @@ "ViewerProtocolPolicy": "redirect-to-https", "DefaultTTL": 86400, "MaxTTL": 31536000, - "MinTTL": 60, + "MinTTL": 0, "Compress": true }, "DefaultRootObject": "index.html",