Page:
ENG 16 Brotli
Pages
CHN 01 概述
CHN 02 安装
CHN 03 快速开始
CHN 04 0 控制器 简介
CHN 04 1 控制器 HttpSimpleController
CHN 04 2 控制器 HttpController
CHN 04 3 控制器 WebSocketController
CHN 05 中间件和过滤器
CHN 06 视图
CHN 07 会话
CHN 08 0 数据库 概述
CHN 08 1 数据库 DbClient
CHN 08 2 数据库 事务
CHN 08 3 数据库 ORM
CHN 08 4 数据库 FastDbClient
CHN 08 5 数据库 自动批处理
CHN 09 插件
CHN 10 配置文件
CHN 11 drogon_ctl命令
CHN 12 AOP面向切面编程
CHN 13 性能测试
CHN 14 Coz分析
CHN 15 Brotli压缩
CHN 16 协程
CHN 17 Redis
CHN 18 测试框架
CHN FAQ 1 线程模型
CHN FAQ
ENG 01 Overview
ENG 02 Installation
ENG 03 Quick Start
ENG 04 0 Controller Introduction
ENG 04 1 Controller HttpSimpleController
ENG 04 2 Controller HttpController
ENG 04 3 Controller WebSocketController
ENG 05 Middleware and Filter
ENG 06 View
ENG 07 Session
ENG 08 0 Database General
ENG 08 1 Database DbClient
ENG 08 2 Database Transaction
ENG 08 3 Database ORM
ENG 08 4 Database FastDbClient
ENG 08 5 Database auto_batch
ENG 09 0 References request
ENG 09 1 File Handler
ENG 10 Plugins
ENG 11 Configuration File
ENG 12 drogon_ctl Command
ENG 13 AOP Aspect Oriented Programming
ENG 14 Benchmarks
ENG 15 Coz
ENG 16 Brotli
ENG 17 Coroutines
ENG 18 Redis
ENG 19 Testing Framework
ENG FAQ 1 Understanding drogon threading model
ENG FAQ
Home
Home.zh CN
README
_Cover
1
ENG 16 Brotli
ProTankerAlfa edited this page 2024-05-20 01:29:57 -03:00
Table of Contents
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
.
16 Coroutines
Document
Tutorial
- 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