Skip to content

Commit 75c625d

Browse files
authored
fix(infra): cloudfront needs query strings uri encoded (#2663)
1 parent 745b6b6 commit 75c625d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/_infra/src/edge/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export class EdgeStack extends cdk.Stack {
101101
forwardedValues: {
102102
/** Forward all query strings but do not use them for caching */
103103
queryString: true,
104-
queryStringCacheKeys: ['config', 'exclude', 'date[before]', 'date[after]'],
104+
queryStringCacheKeys: ['config', 'exclude', 'date[before]', 'date[after]'].map(encodeURIComponent),
105105
},
106106
lambdaFunctionAssociations: [],
107107
},

0 commit comments

Comments
 (0)