<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Compression on Ubuntu Tips</title><link>https://ubuntips.com/tags/compression/</link><description>Recent content in Compression on Ubuntu Tips</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Mon, 23 Nov 2026 03:01:57 +0800</lastBuildDate><atom:link href="https://ubuntips.com/tags/compression/index.xml" rel="self" type="application/rss+xml"/><item><title>gzip, Brotli or zstd? It depends on what you are compressing</title><link>https://ubuntips.com/posts/gzip-brotli-or-zstd-per-tier/</link><pubDate>Sun, 22 Nov 2026 20:00:00 +0800</pubDate><guid>https://ubuntips.com/posts/gzip-brotli-or-zstd-per-tier/</guid><description>&lt;p&gt;&amp;ldquo;Which compression should my web server use?&amp;rdquo; usually gets one answer for the whole site. On a PHP origin there are really three different jobs, and they want three different answers:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&lt;strong&gt;Pages served from the guest cache.&lt;/strong&gt; Compressed once when the page is stored, then sent as-is to every visitor.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Pages rendered for logged-in members.&lt;/strong&gt; Compressed on every request, while PHP is already the bottleneck.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Static files&lt;/strong&gt; (CSS, JavaScript, fonts). The same bytes for everyone, compressed on every request unless you precompress them.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;This cycle of my &lt;a href="https://ubuntips.com/posts/one-idempotent-script/"&gt;provisioning script&lt;/a&gt; audit measured all three with gzip, Brotli and zstd. In short:&lt;/p&gt;</description></item></channel></rss>