gzip static assets when uploading to S3 #1253
Replies: 4 comments
-
I think the solution is to set the |
Beta Was this translation helpful? Give feedback.
-
I am aware of potential for side effects with compression + edge caching behind CloudFront distributions, something I was working on recently. Was going to check back on this issue as I dug into this eventually! |
Beta Was this translation helpful? Give feedback.
-
Minor update: Architect Functions + HTTP Proxy now support this as of architect/functions#283 |
Beta Was this translation helpful? Give feedback.
-
Update: as of Arc 10.3, all static assets are now brotli compressed, as well as non-binary responses delivered via |
Beta Was this translation helpful? Give feedback.
-
We configure API Gateway to gzip response payloads to reduce the size on transfer, but if we also gzip'ed assets on their way to the static S3 bucket we could reduce the amount of data over the wire between S3 and Lambda.
Low priority as it's unlikely to yield huge wins, but could be a "nice to have" improvement.
Beta Was this translation helpful? Give feedback.
All reactions