Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

gzip compression in asp.net beta 7

$
0
0

I'm working on a new test asp.net applicaiton using beta 7 - I have a basic web application started with the basic option - using MVC services (default options) and the Static Files middleware (default options).  

By default, I notice that MVC responses (i.e. views) and static files are compressed (gzip) but WebAPI responses (json) are not.  Is there a way to enable compression on Json responses as well and is there a way to configure the compression (i.e. disable it if the response body is smaller than a certain size). 

In my asp.net 4.6 site I use my own middleware to handle compression but if asp.net 5 does this by default, I assume there is some way to configure it without implementing my own custom middleware. 


Viewing all articles
Browse latest Browse all 9386

Trending Articles