Data compression is essential for optimizing performance on the web. Initially, gzip was the go-to method, but now Brotli and ZStandard provide even better compression ratios. Shared dictionaries can enhance this further by customizing patterns for specific resources, leading to significant compression ratios. For example, compressing Angular 1.8.3 using Angular 1.7.9 as a dictionary achieved a 98% compression ratio. However, the challenge lies in ensuring the dictionary used for compression is also available for decompression. Shared dictionary compression can benefit static resources like JS and CSS files, as well as dynamic resources like frequently updated HTML pages. Several bundlers support compression at build time with dictionary-aided options. CDN providers are exploring shared dictionary compression, promising even greater performance enhancements. Try enabling Compression dictionary transport in Chrome or register for the origin trial to experience these improvements firsthand. The potential for faster loading performance using shared dictionary compression is significant, and user feedback is encouraged.
https://developer.chrome.com/blog/shared-dictionary-compression