What can be done to let the browser know that a json.gz file is compressed JSON, for example: {"abc":1}, and automatically unpack it into a JavaScript object?
I attempted this approach, but it was not successful: https://en.wikipedia.org/wiki/JSONP
<script src="http://localhost:8080/41925.json.gz?callback=parseResponse"></script>
The script from “http://localhost:8080/41925.json.gz?callback=parseResponse” was loaded even though its MIME type (“application/gzip”) is not a valid JavaScript MIME type.
I have the option to configure different headers on the backend, but I am unsure which ones to use.