01 | if (!Request.UserAgent.ToLower().Contains("konqueror")) |
03 | if (Request.Headers["Accept-encoding"] != null && |
04 | Request.Headers["Accept-encoding"].Contains("gzip")) |
06 | Response.Filter = new GZipStream(Response.Filter, |
07 | CompressionMode.Compress, true); |
08 | Response.AppendHeader("Content-encoding", "gzip"); |
10 | else if (Request.Headers["Accept-encoding"] != null && |
11 | Request.Headers["Accept-encoding"].Contains("deflate")) |
13 | Response.Filter = new DeflateStream(Response.Filter, |
14 | CompressionMode.Compress, true); |
15 | Response.AppendHeader("Content-encoding", "deflate"); |
|