extra-php-extensions icon indicating copy to clipboard operation
extra-php-extensions copied to clipboard

Add brotli extension support

Open otezz opened this issue 1 year ago • 2 comments

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

otezz avatar Jul 12 '24 10:07 otezz

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.

GrahamCampbell avatar Jul 12 '24 12:07 GrahamCampbell

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.

otezz avatar Jul 15 '24 02:07 otezz