Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add brotli extension support #547

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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.

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.

2 participants