HTTP compression
Airlock can accelerate web applications by compressing web responses. This reduces both bandwidth and response times, particularly for large text documents (HTML, CSS, JavaScript, etc).
How does output compression work?
Airlock checks if the browser supports response compression. Most modern browsers can handle zipped content and inform the server by adding a request header. Airlock Gateway uses either the โBrotli or โgzip โcompression by default (if the browser supports it), with Brotli โbeing preferred.
Airlock restricts content compression to the following content types:
text/HTMLtext/CSStext/javascripttext/ecmascripttext/plaintext/XMLapplication/javascriptapplication/x-javascriptapplication/ECMAScriptapplication/x-ECMAScriptapplication/JSONapplication/vnd.api+jsonapplication/rss+xmlapplication/rdf+xmlapplication/atom+xmlapplication/x-andapplication/XMLapplication/xhtml+xmlapplication/soap+xmlimage/svg+xml
Turn on output compression
To enable Brotli/gzip compression for a mapping, tick the Compress response traffic checkbox in the ๐๐ฝ๐ฝ๐น๐ถ๐ฐ๐ฎ๐๐ถ๐ผ๐ป section of the Basic tab on the mapping detail page.
Output compression works regardless of the capabilities of your backend systems. Airlock Gateway will also compress responses not compressed by your application server. The application has to correctly declare the response's content type (see list of content types above).
Input compression
Airlock Gateway can also handle gzip-compressed request bodies sent by browsers. This dramatically accelerates large uploads or web service requests.