Process Flow - Brotli compression
Client sends HTTP request
Nginx receives request
Check if Brotli module enabled?
No→Serve uncompressed content
Yes
Check if client supports Brotli (Accept-Encoding)
Compress response
Send compressed response to client
Nginx checks if Brotli is enabled and if the client supports it, then compresses the response before sending.