BoKDamgaard
BoKDamgaard

Reputation: 398

Why is compression not working in servicestack

I'm having trouble getting compression to work with ServiceStack. I return .ToOptimizedResult from my server, and I get a log entry that tells my that the header is added:

ServiceStack.WebHost.Endpoints.Extensions.HttpResponseExtensions: 
DEBUG: Setting Custom HTTP Header: Content-Encoding: deflate

However the content returned is not compressed. I've checked using both Fiddler and Network inspector in Chrome.

Upvotes: 0

Views: 392

Answers (1)

BoKDamgaard
BoKDamgaard

Reputation: 398

Sorry to all It seems that maybe my antivirus (BitDefender) decompresses the data to scan for virus, even though I disabled the AV. When testing on other computers the output is compressed.

Upvotes: 1

Related Questions