basecamp / thruster

MIT License
912 stars 31 forks source link

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

Open lazaronixon opened 6 months ago

lazaronixon commented 6 months 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 6 months 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.