I'm accessing JSON files stored in a bucket on Google Storage directly using an AJAX request. However to optimize the communication I want to enable gzip encoding.
The docs say I have to send an Accept-Encoding header and an altered User-Agent (containing gzip). Accept-Encoding is no problem, however altering your User-Agent is not possible, the w3c even specifies so.
How can I still enable gzipping while doing these request?