Compression & Optimisation
Altis automatically compresses and optimises data served by your site using industry-standard methods, across static assets and dynamic pages.
Compression reduces page load times by reducing overall bandwidth usage, which can also improve SEO performance and as Lighthouse scores. Altis automatically compresses assets on the server, which are uncompressed by the visitor's browser.
Compression algorithms are selected automatically based on browser support and response types. In some cases, compressing responses may lead to slower response times (for example, dynamic uncachable responses with higher levels of compression), and Altis may dynamically change or disable compression for these responses.
Compression is applied to static assets (such as JS and CSS files within your codebase), uploaded assets (such as images), and dynamic HTML responses.
How do we compress assets?
Assets are compressed using GZIP for browsers which indicate support for it. This includes all modern browsers on desktop and mobile platforms. Like other responses, compressed assets are cached on the CDN for faster delivery to subsequent requests.
We compress the following static assets (based on MIME type):
- Plain text (
- CSS files (
- HTML files (
- XML files (including RSS & SVG) (
- Font files (
Images are compressed, optimised, and cached separately, through support for dynamic images. Optimised and resized images are created on the fly, and then cached at the CDN layer for a year.
For browsers which support it, images will be automatically converted to WebP format.
What about Brotli compression?
Altis has partial support for Brotli at the CDN layer. Support for dynamic (
text/html) responses is not currently available.
Brotli support on Altis is currently available on an opt-in basis. To enable Brotli on your application, contact Altis Support.