Neat idea. My approach to solving this issue was configuring nginx to gzip responses with a high compression ratio. You can also precompress your asset files and tell nginx to find and serve the “.gz” compressed version of a static asset if available. This alleviates additional compute load imposed by Enabling compression.