Skip to content

Support pre-compressed content (i.e. *.gz) in GitLab Pages

HTML/CSS/JS/etc. content is served from GitLab Pages without any compression. It would be great if compression were supported, and I would really like to see support for pre-compressed content (like Nginx's gzip_static).

To enumerate the features requested:

  • Support serving compressed content with Content-Encoding: gzip.
  • Support pre-compressed content. For example, imagine a file index.html and its gzip-compressed companion index.html.gz. The only solution I'm envisioning is similar to Nginx's gzip_static, where a request for $FILE will result in $FILE.gz being used if it exists. So a request for index.html will return index.html.gz.