GitHub Page Times out Loading Images

I have the following github page:

http://www.konne.me/2015/08/17/paradoxes.html

base on this markdown file:

https://github.com/konne88/konne88.github.io/blob/master/_posts/2015-08-17-paradoxes.md

The pictures on this page take very long to load (spinning load symbol in browser), and some don’t load at all because they time out:

As you can see on the final page, there are missing images, which my users have complained about:

Reloading the page solves the problem, as most images are then loaded from the cache, and the rest of the images then don’t time out. 

Why do I see this behavior? Is there some sort of rate limiter preventing these images from being loaded? What can I do to fix this?

1 Like

It works fine for me. Chrome 63 on a fast internet connection.

It looks like your site URL in your configuration is set to http://konne.me while the site is actually at http://www.konne.me. Have you tried updating the site URL to include the www to save the redirect on every image?

For example, when I attempt to request one of the images from your page using the URL in the IMG tag, I get:

$ curl -v http://konne.me//assets/posts/paradoxes/nat-asc.jpg

* Trying 184.168.221.26...
* TCP_NODELAY set
* Connected to konne.me (184.168.221.26) port 80 (#0)
> GET //assets/posts/paradoxes/nat-asc.jpg HTTP/1.1
> Host: konne.me
> User-Agent: curl/7.54.0
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< Cache-Control: max-age=900
< Content-Type: text/html
< Location: http://www.konne.me/assets/posts/paradoxes/nat-asc.jpg
< Server: Microsoft-IIS/7.5
< X-AspNet-Version: 4.0.30319
< X-Powered-By: ASP.NET
< Date: Fri, 19 Jan 2018 22:05:32 GMT
< Content-Length: 0
< Age: 1
< Connection: keep-alive
<
* Connection #0 to host konne.me left intact

Notice the redirect to the canonical location and the Server header of Microsoft-IIS/7.5. But when I go to the canonical location:

[master][~/Source/lee-dohm/staff-notes] curl -v http://www.konne.me/assets/posts/paradoxes/nat-asc.jpg
* Trying 151.101.1.147...
* TCP_NODELAY set
* Connected to www.konne.me (151.101.1.147) port 80 (#0)
> GET /assets/posts/paradoxes/nat-asc.jpg HTTP/1.1
> Host: www.konne.me
> User-Agent: curl/7.54.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: GitHub.com
< Content-Type: image/jpeg
< Last-Modified: Tue, 05 Sep 2017 10:45:21 GMT
< Access-Control-Allow-Origin: *
< Expires: Fri, 19 Jan 2018 22:16:09 GMT
< Cache-Control: max-age=600
< X-GitHub-Request-Id: 1E7C:11831:45B9C:4BAFA:5A626BD0
< Content-Length: 38482
< Accept-Ranges: bytes
< Date: Fri, 19 Jan 2018 22:06:09 GMT
< Via: 1.1 varnish
< Age: 0
< Connection: keep-alive
< X-Served-By: cache-sea1032-SEA
< X-Cache: MISS
< X-Cache-Hits: 0
< X-Timer: S1516399569.220380,VS0,VE6
< Vary: Accept-Encoding
< X-Fastly-Request-ID: 508ebc803eaa130a84ec5dd776e85d69738fdd9f

I get no redirect and a Server of GitHub.com as well as some Fastly caching info. So there’s a few things that could be causing the problem, but the easiest one to try out would be to remove the redirect and see what happens.

I hope that helps!

1 Like