Text Compression For Static Deployments

Describe your feature request
I would like for us to have automatic text compression for static deployments. (including extensions)
What problem(s) would this feature solve?
It would lower egress usage and make apps faster.
Explain what you were trying to do when you came across the problem leading to this feature request
I was trying to compress a very big js file so my app runs smoother and lighthouse suggested that as well, I thought I could set headers so I made this feature request and realized that it already exists as a feature, but is undocumented and not made for that purpose. (content-encoding header is not supported)

Conclusion
I realize not everyone knows about this, and Replit implementing a dynamic version of it based on Accept-Encoding browser header would be the best solution for everyone, static deployment websites get faster, and egress usage gets lower, it’s a win-win situation.

8 Likes

What do you guys this about this?
Should it be implemented for all deployments by default not only static?