Shaved 1.9GB/day off transfer with brotli
Just did this on a $5 box, content-heavy blog, 60k pageviews/day. HTML/CSS/JS was going out raw, transfer was climbing toward the plan cap.
Compiled nginx with brotli and tuned levels:
— brotli on; brotli_comp_level 5;
— brotli_types text/html text/css application/javascript application/json;
— kept gzip as fallback for old clients
Measured page weight: 142KB → 38KB on HTML. Daily egress fell ~1.9GB. CPU cost of level 5 was negligible, under 2% on this box. Pages also felt snappier on mobile.
Try it tonight.
Root Access Daily
@RootAccessDaily
Shaved 1.9GB/day off transfer with brotli
Этот пост опубликован в Telegram-канале Root Access Daily. Подписаться можно по ссылке: @RootAccessDaily.