Skip to content
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

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

Open
lazaronixon opened this issue May 13, 2024 · 1 comment
Open

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

lazaronixon opened this issue May 13, 2024 · 1 comment

Comments

@lazaronixon
Copy link

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
Copy link
Contributor

3v0k4 commented May 13, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants