Skip to content

Commit

Permalink
Disabling gzip compression in cloudfront's cache option. This will im…
Browse files Browse the repository at this point in the history
…prove cloudfront's cache hit ratio.
  • Loading branch information
fvsnippets authored and Federico Valido committed Jun 18, 2022
1 parent b6a4f88 commit f1c048b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/constructs/lib/back-end/back-end-construct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export class BackEnd extends Construct {
defaultTtl: Duration.days(1),
minTtl: Duration.seconds(1),
maxTtl: Duration.days(365),
enableAcceptEncodingGzip: true,
enableAcceptEncodingGzip: false,
headerBehavior: {
behavior: 'whitelist',
headers: ['origin', 'accept']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ Object {
"CookieBehavior": "none",
},
"EnableAcceptEncodingBrotli": false,
"EnableAcceptEncodingGzip": true,
"EnableAcceptEncodingGzip": false,
"HeadersConfig": Object {
"HeaderBehavior": "whitelist",
"Headers": Array [
Expand Down

0 comments on commit f1c048b

Please sign in to comment.