GitHub Page Times out Loading Images

I have the following github page:

base on this markdown file:

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 while the site is actually at 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

* Trying
* Connected to ( port 80 (#0)
> GET //assets/posts/paradoxes/nat-asc.jpg HTTP/1.1
> Host:
> User-Agent: curl/7.54.0
> Accept: */*
< HTTP/1.1 301 Moved Permanently
< Cache-Control: max-age=900
< Content-Type: text/html
< Location:
< 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 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
* Trying
* Connected to ( port 80 (#0)
> GET /assets/posts/paradoxes/nat-asc.jpg HTTP/1.1
> Host:
> User-Agent: curl/7.54.0
> Accept: */*
< HTTP/1.1 200 OK
< Server:
< 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 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