-
-
Notifications
You must be signed in to change notification settings - Fork 365
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
Automatically gzip large responses #1661
Comments
Hey @jaulz, that is interesting! Do you have any numbers on bigger payloads that you are able to return that way? |
Now AWS supports response streaming to bypass 6MB limit
Its supported on NodeJS official runtime but AWS allows to support on custom runtimes too. Maybe this will be interesting also in combination with gzip encoding, because GZIP works great on text responses but on binary responses maybe not https://aws.amazon.com/es/blogs/compute/introducing-aws-lambda-response-streaming/ |
@kevincerro FYI #1503 |
I wonder if Bref could automatically try to gzip the response if it's bigger than the 6MB limit. I gave it a try and at least this approach works for me (removed the Vapor header):
https://bannister.me/blog/gzip-compression-on-laravel-vapor/
Since it's already possible via (Laravel) middleware, it's not urgent but maybe a nice addition.
The text was updated successfully, but these errors were encountered: