5 ms·
You 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.
by wang_li 11y ago
You 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.