3 ms·
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 an
by dclusin 7y ago
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.
- teej 7y agoI immediately jumped to “why don’t we just compress them?” and it turns out I was wrong. The author is using the WOFF format (https://en.wikipedia.org/wiki/Web_Open_Font_Format https://en.wikipedia.org/wiki/Web_Open_Font_Format) which is already compressed with zlib using a special encoding. Serving them gzipped is unnecessary.
- deleted 7y ago[deleted]