jetbridge / cdk-nextjs

Deploy a NextJS application using AWS CDK
https://constructs.dev/packages/cdk-nextjs-standalone
Apache License 2.0
260 stars 43 forks source link

fix: 400 Bad request when creating CachePolicy on the Distribution. #188

Closed AlbertSabate closed 7 months ago

AlbertSabate commented 7 months ago

Fixes #189

AllowList accept-encoding headerBehaviour is not compatible with enableAcceptEncodingGzip: true.

My recommendation is to remove accept-encoding from allowList headerBehaviour as default. And the final user can amend as they wish. But like this, the default options will be functional.

Fixes #

bestickley commented 7 months ago

Thank you, @AlbertSabate! I just ran into this myself.