accrescent / meta

Umbrella Accrescent issue tracker
6 stars 1 forks source link

Support Brotli (and gzip) HTTP compression #9

Open ghost opened 2 years ago

ghost commented 2 years ago

As more apps are hosted, this becomes more and more desirable.

The app's code will obviously need to support and implement it as well as the server-side.

You will also need to host pre-compressed files on the web server if you want to support HTTP download pause/resume in the app client in case of interrupted downloads.

lberrymage commented 1 year ago

For the server side, Go has standard library support for gzip compression. If we're to use brotli then the best option at the moment appears to be https://pkg.go.dev/github.com/google/brotli/go/cbrotli.

lberrymage commented 2 months ago

See https://github.com/accrescent/accrescent/commit/a44ed4169fa728e4666f0bfcef25f63309e4490f