Within a girder plugin, I created a new route that generates a large json output (betwen 1MB and 10MB).
Is there some nice way to get my output gzipped ?
The only way I saw would be to teach _createResponse to support the “Accept-Encoding” request header ? But I’m not sure if it is a good idea to compress all requests as soon as the browser supports “Accept-Encoding”.
What do you think ?