Nginx Example

If your server uses Nginx, a server admin can review a standard setup like this:

nginx
nginx
1gzip on;
2gzip_vary on;
3gzip_proxied any;
4gzip_comp_level 5;
5gzip_min_length 256;
6gzip_types
7 text/plain
8 text/css
9 text/javascript
10 application/javascript
11 application/json
12 application/xml
13 image/svg+xml;
14
15location ~* \.(css|js|jpg|jpeg|png|gif|webp|svg|woff|woff2)$ {
16 expires 30d;
17 add_header Cache-Control "public, max-age=2592000, immutable";
18}

If Brotli is available on the server, a typical admin-managed setup may look like this:

nginx
nginx
1brotli on;
2brotli_comp_level 5;
3brotli_types text/plain text/css text/javascript application/javascript application/json application/xml image/svg+xml;

If you do not control Nginx directly, send the above examples to the host and ask them to apply equivalent server-side rules.

Continue reading