Skip to content

Commit

Permalink
fix(build): Fix missing cache behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
ReedD committed Aug 25, 2018
1 parent feadef0 commit 0ac5fdb
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions cfn-stack.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down

0 comments on commit 0ac5fdb

Please sign in to comment.