From 997c3c3902eac8c33356a275a9422c2ad3d38d7a Mon Sep 17 00:00:00 2001 From: EarthlingDavey <15802017+EarthlingDavey@users.noreply.github.com> Date: Fri, 22 Nov 2024 11:42:14 +0000 Subject: [PATCH] Bug: Fix increase CloudFront policy duration (#795) --- .../app/themes/clarity/inc/amazon-s3-and-cloudfront-signing.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/themes/clarity/inc/amazon-s3-and-cloudfront-signing.php b/public/app/themes/clarity/inc/amazon-s3-and-cloudfront-signing.php index 0537f8891..9720e2a48 100644 --- a/public/app/themes/clarity/inc/amazon-s3-and-cloudfront-signing.php +++ b/public/app/themes/clarity/inc/amazon-s3-and-cloudfront-signing.php @@ -31,7 +31,7 @@ class AmazonS3AndCloudFrontSigning private mixed $cloudfront_host; private string $cloudfront_url; - const CLOUDFRONT_DURATION = 60 * 10; // 10 minutes + const CLOUDFRONT_DURATION = 60 * 15; // 15 minutes - important that this is at least nginx cache (10mins) + TRANSIENT_DURATION (2mins) const CLOUDFRONT_REFRESH = 60 * 5; // 5 minutes const TRANSIENT_DURATION = 60 * 2; // 2 minutes