~emersion/kimchi#15: 
Add support for gzip encoding

Most browser "Accept-Encoding": "gzip", so the server could do this on the fly. There are also other encodings.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Encoding

Another option is to have .gz files besides the "real" file and serve that instead, to save CPU.

This would be an option of "file_server", perhaps with a fallback in the global namespace.

Status
REPORTED
Submitter
~somini
Assigned to
No-one
Submitted
4 years ago
Updated
4 years ago
Labels
enhancement

~somini 4 years ago

https://pkg.go.dev/github.com/mkch/burrow/compress

This seems to implement this using only the standard library. But only for the on-the-fly case.

~emersion 4 years ago

Register here or Log in to comment, or comment via email.