HTTP Compression
HTTP compression reduces file size by compressing response bodies before transmission. Common algorithms include gzip (most widely supported), brotli (better compression ratio), and deflate (older standard). Compression is negotiated via Accept-Encoding request header and Content-Encoding response header. Servers compress text-based content (HTML, CSS, JavaScript, JSON) but typically not binary files (images, videos) that are already compressed.