3 ms·
You can pre-gzip, or cache the gzipped version; some servers do; in fact storing the gzipped version and occasionally uncompressing it for clients that cant do
by justincormack 11y ago
You can pre-gzip, or cache the gzipped version; some servers do; in fact storing the gzipped version and occasionally uncompressing it for clients that cant do compression is much more efficient than the reverse as uncompressing is much faster.
- wang_li 11y agoYou can store both on disk, apache at least, will figure out if the client can handle gzipped content and will send the compressed version when possible.
- deleted 11y ago[deleted]
- icebraining 11y agoSame for nginx, using the gzip_static module: http://nginx.org/en/docs/http/ngx_http_gzip_static_module.html http://nginx.org/en/docs/http/ngx_http_gzip_static_module.ht...
- arihant 11y agoBut doing cache in this way sort of defeats the argument. Why would one cache a gzip copy instead of minified or minified+gipped? And minified alone is more efficient than gzip and can work regardless of client preference. The argument here is why not simply use gzip and not use minification at all.