From 0ac5fdbaa536db98584df7a087c0ff696a57ce91 Mon Sep 17 00:00:00 2001 From: Reed Dadoune Date: Fri, 24 Aug 2018 20:13:35 -0700 Subject: [PATCH] fix(build): Fix missing cache behavior --- cfn-stack.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/cfn-stack.json b/cfn-stack.json index 15ee243..1e1ecfa 100644 --- a/cfn-stack.json +++ b/cfn-stack.json @@ -427,6 +427,23 @@ "DistributionConfig": { "Aliases": [{ "Fn::Sub": "www.${DomainName}" }], "CacheBehaviors": [ + { + "AllowedMethods": ["GET", "HEAD", "OPTIONS"], + "CachedMethods": ["GET", "HEAD", "OPTIONS"], + "Compress": true, + "ForwardedValues": { + "QueryString": false, + "Cookies": { "Forward": "none" }, + "Headers": [] + }, + "DefaultTTL": 86400, + "MinTTL": 86400, + "MaxTTL": 31536000, + "ViewerProtocolPolicy": "redirect-to-https", + "PathPattern": "*.*.js", + "SmoothStreaming": false, + "TargetOriginId": "S3Bucket" + }, { "AllowedMethods": ["GET", "HEAD", "OPTIONS"], "CachedMethods": ["GET", "HEAD", "OPTIONS"],