3 ms·
Would love to see the tests re-run on real data that can be gzipped. You mention that your Sinatra-based tool: "generates a response consisting of a requested
by stuff4ben 16y ago
Would love to see the tests re-run on real data that can be gzipped. You mention that your Sinatra-based tool: "generates a response consisting of a requested number of pseudorandom alphanumeric and whitespace bytes." Then you say that "gzip had no effect on cacheability on any device." I believe that your conclusion that gzip doesn't work is because it's hard to compress random (or pseudorandom) text.
- rgrove 16y agoActually, the reason is that the browser uncompresses components before caching them, so compression has no effect on cacheability. The generated data are actually a series of newline-delimited MD5 hashes of pseudorandom numbers, which makes them fairly compressible. For example, 32KB of data gzips down to about 18.9KB, which seems to me like a pretty reasonable representation of typical web content. I didn't conclude that gzip "doesn't work", just that it has no effect on cacheability. Gzip is certainly good for reducing the number of bytes on the wire, though.