I have an MVC 5 application (C#) hosted on Microsoft Azure. The app returns some fairly large JSON documents from the server to the client. Does anyone know how to turn HTTP compression on so that these documents are compressed going to the client? I've Googled this but I couldn't find anything that wasn't at least 3-4 years old.
I suppose an alternative would be to compress just the JSON document using a compression utility. I've tried LZ-String but I can't seem to be able to compress the document on the server using the C# version and decompress on the client using the JavaScript version, and have the resulting JSON document be recognized.