Which HTTP compression should I use (and how?)

I know there are several HTTP compression tools.

Which HTTP compression algorithm should I use to prevent a website from being vulnerable to BREACH?

How can I also make sure the server is using it?

(Discussed conversation about Brotli, but did not really answer the question: Brotli compression for HTTPS)