Enable Brotli when using a Framework

Frameworks are a great way to get started with a new project. They provide a lot of functionality out of the box, and can be a great way to reduce boilerplate and improve time to market. However, they can also be a bit of a black box, and it can be difficult to know what is going on under the hood. Depending on the framework and language you use, changing behavior, e.g. when you want to enable Brotli compression, is not always straightforward.

Commonly, enabling Brotli is a responsibility of the web server or platform. However, if you are using a framework, you might want to enable Brotli compression in the framework itself. This is especially true if you are using a framework that is not using a web server per sé.

Luckily, we got you covered for various frameworks: