mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-10 15:06:18 +08:00
This enables on-the-fly brotli compression at level 4 for all responses which we currently gzip. This level should provide slightly improved file sizes when compared to gzip, as well as slightly faster processing times. This is the [level which Cloudflare use](https://blog.cloudflare.com/results-experimenting-brotli/) for dynamic responses. When compared to our existing gzip level-5 configuration, our own experiments confirm that it provides slightly faster compression, with slightly smaller file sizes. For static assets which are cached by CDNs/browsers, we use brotli level 6 for an even better compression ratio. |
||
|---|---|---|
| .. | ||
| environments | ||
| initializers | ||
| locales | ||
| application.rb | ||
| boot.rb | ||
| cdn.yml.sample | ||
| database.yml | ||
| deploy.rb.sample | ||
| dev_defaults.yml | ||
| discourse.config.sample | ||
| discourse.pill.sample | ||
| discourse_defaults.conf | ||
| environment.rb | ||
| logrotate.conf | ||
| multisite.yml.production-sample | ||
| nginx.sample.conf | ||
| projections.json | ||
| puma.rb | ||
| routes.rb | ||
| sidekiq.yml | ||
| site_settings.yml | ||
| spring.rb | ||
| thin.yml.sample | ||
| unicorn.conf.rb | ||
| unicorn_launcher | ||
| unicorn_upstart.conf | ||