Cloudflare has introduced a prototype called Cache Transcoding, designed to optimize storage usage by compressing content directly upon entry into the cache. The system utilizes the Zstandard algorithm to compress files such as HTML, JSON, CSS, and JavaScript, which are currently stored in uncompressed formats in approximately 71% of cases.

During internal testing, the prototype achieved a compression ratio of approximately 2.8 times, potentially freeing up petabytes of storage capacity across the company's data centers. The compressed data remains in that state during internal transfers between data centers and is only decompressed when delivered to the end user.

The prototype was developed by intern Ashi Patel and detailed in a company blog post on September 1. Cloudflare notes that the solution is not yet deployed in production, as the team requires a larger dataset to validate the performance and reliability of the system before a full-scale rollout.

While the approach is new for Cloudflare, the concept of storing compressed cache data has existed for years. Varnish has implemented similar functionality since 2011. Historically, companies prioritized disk space over CPU cycles due to lower hardware costs, but the current initiative reflects a shift in resource management priorities.