9951 explained code solutions for 126 technologies


nginxEnable and use Brotli


Before configuring Brotli usage you need to install Nginx Brotli module:

server {
  brotli on;
  brotli_comp_level 6;
  brotli_static on;
  brotli_types text/plain text/css application/javascript application/json text/xml image/svg+xml;
}ctrl + c
brotli on

enable Brotli module

brotli_comp_level

specify compression level

brotli_static

check if pre-compressed static files exist

brotli_types

mime types to enable Brotli compression for