Skip to content
Posts
While playing around with this new website, I noticed relatively long loading times. By default, GitLab Pages does not seem to use any compression when serving the static files of the website. Let’s confirm this using a quick curl call:
chris@CHRISTIANS:~$ curl -ILH "Accept-Encoding: gzip" https://webd97.de HTTP/2 200 accept-ranges: bytes cache-control: max-age=600 content-type: text/html; charset=utf-8 expires: Fri, 19 Oct 2018 20:18:08 UTC last-modified: Fri, 19 Oct 2018 19:56:45 GMT vary: Origin content-length: 12034 date: Fri, 19 Oct 2018 20:08:08 GMT If you take a closer look at the response headers, you can see that there is no Content-Encoding header although gzip was specified as an accepted encoding in the request and the response body is indeed not compressed.