-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
ENG 16 Brotli
Alexander Barbosa edited this page Aug 6, 2024
·
3 revisions
Other languages: 简体中文
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.
Next: Coroutines

- Overview
- Install drogon
- Quick Start
- Controller
- Middleware and Filter
- View
- Session
- Database
- References
- Plugins
- Configuration File
- drogon_ctl Command
- AOP
- Benchmarks
- Coz profiling
- Brotli info
- Coroutines
- Redis
- Testing Framework
- FAQ