I have a HTTP response request that is too big and slow (1.2 mb, 15 seconds, plain text). I want to compress using gzip but the server is not mine. Then I use the data for a chart
For example. I need this response to be compress:
https://rickandmortyapi.com/api/location/20
Is it possible?
I use this code that works great:
$.post("http://serverNotMine", function() {}, "text")
.done(function(data) {
// my code for a chart.js
})
.fail(function() {
alert("Error");
});
How can I know if the server accepts gzip?