extra-php-extensions
extra-php-extensions copied to clipboard
Add brotli extension support
Add Brotli support.
Since neither AWS HTTP API Gateway nor CloudFront has the ability to compress responses with Brotli, we can achieve this by using something like https://github.com/open-southeners/laravel-vapor-response-compression
I think this was an intentional decision by AWS since the compute requirements for compression are very high, an order of magnitude more than for gzip, and the average compression ratio is barely better.
They support payload compression on REST API but not in HTTP API (yet). I think it should be okay to give users the option to handle the compression themselves.