Skip to content

Conversation

otezz
Copy link

@otezz otezz commented Jul 12, 2024

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

@GrahamCampbell
Copy link
Contributor

GrahamCampbell commented Jul 12, 2024

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.

@otezz
Copy link
Author

otezz commented Jul 15, 2024

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.

Copy link
Collaborator

@Nyholm Nyholm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand that this dont always makes sense. But I am happy to merge this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants