To enable Gzip and deflate compression in Asp.net website, you just need to place this code in global.asax.
however you can also apply this setting to IIS level.
void Application_PreRequestHandlerExecute(object sender, EventArgs e)
{
try
{
HttpResponse Response = HttpContext.Current.Response;
String AcceptEncoding = HttpContext.Current.Request.Headers["Accept-Encoding"];
however you can also apply this setting to IIS level.
void Application_PreRequestHandlerExecute(object sender, EventArgs e)
{
try
{
HttpResponse Response = HttpContext.Current.Response;
String AcceptEncoding = HttpContext.Current.Request.Headers["Accept-Encoding"];