basecamp / thruster

MIT License
672 stars 16 forks source link

Why don’t use brotli and also compress HTML #30

Open lazaronixon opened 1 month ago

lazaronixon commented 1 month ago

Hey excellent work with thruster, just some questions.

1- Why don’t use brotli instead of gzip to compress the assets? https://caniuse.com/brotli

2- Given we use hotwire (HTML over the wire), Wouldn’t we have any benefit in also compressing HTML response?

3v0k4 commented 1 month ago

Hi, @lazaronixon. I'm not the author so I won't answer 1.

When it comes to 2., I believe gzip is always on, but it's skipped below 1024 bytes because it wouldn't offer any benefits.