We have enabled automatic compression on CloudFront and it works great. It looks like it is using level 5 brotli compression (for performance reasons probably) and sometimes, with big files, we would like to compress it locally with max compression, which is 20x slower, and upload it next to CSS file to make it even smaller.
On default TailwindCSS file the difference is pretty big:
2.8M Nov 17 12:03 test.css
152K Nov 17 12:04 test-level-5.css.br
71K Nov 17 12:04 test-level-11.css.br
When I add test.css.br file and put it next to test.css on S3, then invalidate file on CF, it still uses the dynamically compressed file. Is it possible for CF to respect the file i upload if it is present? I would like to avoid writing Lambda @ Edge to do this.