-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for pre-compressed gzip files #1674
Comments
Instead of gzip -9, why not use zopfli? Compatible and better compression. |
Never heard of it before, so I looked it up: https://github.com/google/zopfli Sounds like it could be even better. May want to make a Go binding for zopfli for a cleaner integration here. |
I did one test and zopfli took 1m4s vs 0.4s for gzip -9. The output was less than 1% smaller. Do you have any benchmarks showing it being worthwhile? |
Note/Update: This issue is marked as stale, and I may have said something earlier about "opening a thread on the discussion forum". Please don't. If this is a bug and you can still reproduce this error on the latest If this is a feature request, and you feel that it is still relevant and valuable, please tell us why. |
I think that with Pipes in place, one of the last bits to finish the pipeline of generating a site for production would be to compress the files before pushing them to the hosting provider. It seems that other cases like this have gone stale and closed. I am hoping that this feature request can be reopened and used to implement this capability in Hugo. |
@bep now that you have implemented minification, can we open this issue back up to add gzip compression as a final step? |
No. |
It would be great to have gzip and brotli on compilation as a option. Any reason why it won't be implemented? Design decisions or manpower? Maybe I could help. |
It would be nice to have this feature. With my current middleman site I gzip everything before rsyncing it to the server and let apache service the *.gz files directly. |
I have naively tried The idea was to catch performance issues with DevTools Lighthouse in production-like mode. Of course, we can do it with |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Most of the discussion around this has been in #1251. It seems these should be broken up into different parts, so this is the one I care the most about.
This is a feature request to have gzip -9'ed files generated along side the finished HTML, CSS, JS, etc.
The text was updated successfully, but these errors were encountered: