I have be seeing a number of examples on how to enable compression in a self-hosted web setup (non IIS).
Eg. here is a created for ASP .NET 5 http://www.erwinvandervalk.net/2015/02/enabling-gzip-compression-in-webapi-and.html
This doesnt work with .NET Core RC1 as the HttpContext.Response.Body stream is marked as non-readable.
How to enable compression in ASP 6/.NET Core RC1 or RC2?
Check out this Post. They use a middleware approach which I just tested and it seems to be working. For asp.net core it would look like this:
You can also try to play around with IResultFilter.OnActionExecuted as it is possible that the result is just not computed yet.