GitLab pages are not compressed

I’m hosting my website with GitLab pages. When I visit my website, I saw my pages came uncompressed. How can I make the pages compressed?

According to GitLab doc, you can enable brotli or gzip compression by compressing them alongside with the original files before uploading the artifact.

Alternatively, the compress-pages CI component can automatically compress for you.