-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
ENG 16 Brotli
ProTankerAlfa edited this page May 20, 2024
·
1 revision
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
.
16 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