It would be great to add more transformation options to large media. Things like this: https://github.com/axe312ger/sqip would be really useful!
Better image optimisation! Add support to next-gen images like webp
Add support to QUIC.
Image optimization for Large Media would be great as well
Please add support for Brotli soon! I’ve had great success running it on DigitalOcean and it makes a real difference.
Netlify already gzips files transparently.
However, it would be excellent if Netlify supported serving of precompressed files if present. The reason is that you can often gain a 3-8% savings by using the zopfli algorithm for gzipping, which is fairly CPU intensive and should be done in the build step rather than on a per-request basis.
The same goes for supporting brotli. Dropping a
/static/my.js.gz or a
/static/my.js.br could transparently serve the right format if requested.
we have a thread, here on supporting brotli:
If we decide to implement, we’ll let you know when we can - we know this is an ask for several people.
As far as serving precompressed files - this is the first time someone has requested this - can you outline your use case a bit more and potentially your experience with this?
Zopfli can reduce the size of files beyond what a simple gzip pass can, but it takes much longer to compress. I think it’s unreasonable to expect Netlify to compress responses with zopfli transparently, but we could achieve the same gains by compressing files in the build process. It would then be up to Netlify to look for a
<filename.gz> and serve that if present, instead of gzipping “on the fly”.
Second here for webp format and on transforms.
I’ve also used Zopfli to compress files to
<filename>.gz, and I think this sounds like a good idea to be more flexible. This would also allow to add new compressions, e.g.
.br for brotli, much easier, as the compression can be done in userspace.
I would be great if both changing quality and transforming the image format was built-in transformations. Such as automatically choosing the best image format based on the
Accepts header (e,g, webp, or future JPEG XL), or requesting a specific format with
&type=webp. Allowing a quality transform for 0-1 (e.g.
q=0.8) would be great as well.
We’re super excited to let you all know that we have implemented Brotli support! We know that many of you have been waiting for this for some time, here it is.
Another suggestion for the snippet injection: Snippet injection Improvement