Self Host Response Compression
Add built-in response compression for Self Hosted applications.
As per https://forums.servicestack.net/t/http-response-compression-with-self-hosted/2098/4, there is only one way to enable compression on a Self Hosted SS application, add a http proxy like nginx (beta on Windows) in-front of SS.
This is not ideal as it increases the complexity of deployments and maintenance.
Multiple compression options are available from v4.5.8 including Client/Server Request Compression, new [CompressResponse] attribute to compress individual Service responses as well file compression for static files:
ServiceStack provides built-in compression for static files and adhoc Services from v4.5.7. Some info on usage are in the forums: https://forums.servicestack.net/t/http-response-compression-with-self-hosted/2098/15?u=mythz
Robert van Drunen commented
I'd like this enhancement implemented.
It's a tough sell to our customers that we have a standalone server product that requires another product to perform adequately in regard to static content. We serve minified JS clients that are 10MB without compression.
Even a use-at-your-own-risk handler would be sufficient for us.