Skip to content

Commit f1c048b

Browse files
fvsnippetsFederico Valido
authored and
Federico Valido
committed
Disabling gzip compression in cloudfront's cache option. This will improve cloudfront's cache hit ratio.
1 parent b6a4f88 commit f1c048b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/constructs/lib/back-end/back-end-construct.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export class BackEnd extends Construct {
9595
defaultTtl: Duration.days(1),
9696
minTtl: Duration.seconds(1),
9797
maxTtl: Duration.days(365),
98-
enableAcceptEncodingGzip: true,
98+
enableAcceptEncodingGzip: false,
9999
headerBehavior: {
100100
behavior: 'whitelist',
101101
headers: ['origin', 'accept']

source/constructs/test/__snapshots__/constructs.test.ts.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ Object {
346346
"CookieBehavior": "none",
347347
},
348348
"EnableAcceptEncodingBrotli": false,
349-
"EnableAcceptEncodingGzip": true,
349+
"EnableAcceptEncodingGzip": false,
350350
"HeadersConfig": Object {
351351
"HeaderBehavior": "whitelist",
352352
"Headers": Array [

0 commit comments

Comments
 (0)