Gzip and Brotli compressions are currently disabled by the Cloudfront Cache Policy resulting in Next.js not Gzipping content as the headers do not get passed to origin.
This PR enables these options by default, and sets variables to disabled if needed.
Context
This PR results in lower network data transfer by enabling Gzip and Brotli across the Cloudfront Cache Policy
Type of changes
[ ] Refactoring (non-breaking change)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would change existing functionality)
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] This PR is a result of pair or mob programming
Sensitive Information Declaration
To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.
[x] I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.
Description
Gzip and Brotli compressions are currently disabled by the Cloudfront Cache Policy resulting in Next.js not Gzipping content as the headers do not get passed to origin.
This PR enables these options by default, and sets variables to disabled if needed.
Context
This PR results in lower network data transfer by enabling Gzip and Brotli across the Cloudfront Cache Policy
Type of changes
Checklist
Sensitive Information Declaration
To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.