Compress text responses with brotli where supported, gzip everywhere else. zstd is emerging. Don't compress already-compressed media.
RFC 7932 — Brotli Compressed Data Format