Back

Explore Courses Blog Tutorials Interview Questions
+1 vote
2 views
in DevOps and Agile by (19.7k points)

I'm running into a weird issue with Github pages. I pushed a new commit to my personal pages page maltzj.github.io, but the new article isn't showing up there. When I execute the server locally, a post lives at localhost:4000/posts/the-price-of-inconsistent-code/. However, when I go to http://maltzj.github.io/posts/the-price-of-inconsistent-code I get a 404. I also added a new file which should live at http://maltz.github.io/test.html, but that also throws a 404.

Everything builds and runs locally my git repo is up to date, and there is nothing on the GitHub status page about problems with builds, so I'm at a little bit of a loss about where to go with this. How can I get my page to update with new content that I add?

For reference, the location of the repo which backs my page is http://github.com/maltzj/maltzj.github.io

1 Answer

+1 vote
by (62.9k points)

There are two things that cause a delay:

Build time:

If you check in a Jekyll repository (as opposed to checking in HTML files directly) GitHub can run a jekyll build on its end, which might take a while.

Caching:

GitHub Pages set a max-age of ten minutes, which suggests your browser won't check for updates ten minutes since the last retrieval of the page.

Browse Categories

...