My nginx log show:
XXXXX pagespeed: rollback gzip, explicit configuration in /etc/nginx/nginx.conf:39
and I see many cases where pagespeed is returning gzip compression instead of brotli even if the client supports it.
My nginx conf (line 39 is the second) is:
#gzip
gzip on;
gzip_disable "msie6";
gzip_http_version 1.1;
gzip_vary on;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_proxied any;
gzip_types *;
# Brotli Settings
brotli on;
brotli_comp_level 4;
brotli_buffers 32 8k;
brotli_min_length 100;
brotli_static on;
brotli_types image/jpeg image/bmp image/svg+xml text/plain text/css application/json application/javascript application/x-javascrip$
Should the order be reversed? Is this because nginx is already supplying it compressed?