3 ms·
There are benefits to pre-compression: https://theartofmachinery.com/2016/06/06/nginx_gzip_static.html https://theartofmachinery.com/2016/06/06/nginx_gzip_stat
by techntoke 8y ago
There are benefits to pre-compression:
https://theartofmachinery.com/2016/06/06/nginx_gzip_static.html https://theartofmachinery.com/2016/06/06/nginx_gzip_static.h...
That is what GitLab Pages expects, and because I can control my own pipeline with GitLab I am able to support multiple file formats that GitHub would not be able to support. It doesn't get any simpler than the example I provided.
- busterarm 8y agoI'll try and contain my derision towards serious conversations about hosting performance-sensitive content on GitHub/GitLab Pages. As explained in a separate comment, gziping _everything_ is wasting CPU. If you just gzip from nginx, have content caching enabled (why don't you with static content?), and set a minimum size for gzipping, you have the best possible scenario and take a small hit on first requests of files until server-restart/cache-expiration.