Skip to content

ENG 16 Brotli

ProTankerAlfa edited this page May 20, 2024 · 1 revision
Other languages: 简体中文

Brotli Info

Drogon supports out of the box brotli statically compressed files if it finds next to asset the corresponding brotli compressed asset.

So for instance, Drogon will search /path/to/asset.js.br for the request /path/to/asset.js.

It does so by setting br_static to true by default in config.json file.

if you want to dynamically compress with brotli you'll have to set use_brotli to true in config.json.

Users who don't intend to use brotli static, might want to get rid of brotli extra 'sibling check' by setting br_static to false in config.json.

Document

Tutorial

中文文档

教程

Clone this wiki locally