TGViewer
„Chillin‘“ at Amazon „Chillin‘“ at Amazon @webapparch · 591 subscribers
Post #170 308
#gzip #compression

Bandwidth optimization

Web servers use gzip to reduce the total amount of data transferred to clients. When a browser with gzip support sends a request, it adds “gzip” to its Accept-Encoding header. When the web server receives the request, it generates the response as normal, then checks the Accept-Encoding header to determine how to encode the response. If the server supports gzip, it uses gzip to compress each resource. It then delivers the compressed copies of each resource with an added Content-Encoding header, specifying that the resource is encoded using gzip. The browser then decompresses the content into its original uncompressed version before rendering it to the user.

However, this comes at a cost. Compression is a CPU-intensive process, and the more you compress a file, the longer it takes. Because of this, gzip offers a range of compression levels from 1 to 9; 1 offers the fastest compression speed but at a lower ratio, and 9 offers the highest compression ratio but at a lower speed. The gzip application uses level 6 by default, favoring higher compression over speed. Nginx, on the other hand, uses level 1, favoring higher speeds over file size savings.

https://www.pingdom.com/blog/can-gzip-compression-really-improve-web-performance/
pingdom.com Can gzip Compression Really Improve Web Performance? - Pingdom We ran three different configurations to see if gzip compressed or uncompressed sites have the best page speed. Read our step-by-step how to gzip sites guide.
More from @webapparch
  1. Aug 2, 2026У кого еще «перманентный психоз»? 🤪 - Смена роли: Раньше ограничением инженера была его с…
  2. Aug 1, 2026Document Review Agents Сейчас все документы, прежде чем читать самому, прогоняю через veri…
  3. Jul 27, 2026Продуктивность собирается из мелочей 🧠 Имплементация больше не боттл нек. Мое внимание -…
  4. Jul 23, 2026Интересный способ применить Ии в образовании : https://x.com/iPaulCanada/status/2079981184…
  5. Jul 20, 2026DeepSeek в 20 раз дешевле Антропика 💸 Стоит переходить? 🤔 На выходных потестил pi.dev в…
  6. Jul 19, 2026День удался !
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →