I try to add header in filter:
Response.AppendHeader("Content-Encoding", "gzip");
But it is not appears in the browser, not chrome , and not in Firefox:
this is how i return json:
[HttpPost]
public virtual ActionResult GetMetaData()
{
var result = new BL().GetMetaData();
string response = JsonConvert.SerializeObject(result, Formatting.Indented, new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore });
return Content(response, "application/json");
}