How long does it take for GitHub page to show changes after changing index.html

后端 未结 3 943

I am just wondering how long does it take for GitHub page to show the new items that I have added to the repository.

I changed index.html but after 10 m

相关标签:
3条回答
  • 2020-12-23 13:30

    Github pages are cached with CDN. As explained by JoelGlovier in comments, you can still have the latest version of your pages by appending a version in the query string such as https://username.github.io/awesome-repo/?version=f36af92 so that you won't get a cached version of your page.

    0 讨论(0)
  • 2020-12-23 13:41

    Github also has a deployment page: https://github.com/<user>/<repo>/deployments that lists the deployments and the time they were deployed.

    Choose github-pages from the environments drop-down list.

    This helps to know if your latest git push was deployed at all.

    0 讨论(0)
  • 2020-12-23 13:48

    The first time you generate your site it will take about 10 minutes for it to show up. Subsequent builds take only seconds from the time you push the changes to your GitHub repository.

    However, depending on how your have your domain configured, there may be extra time for the CDN cache to break.

    Note: using a subdomain, such as yourproject.github.io is the recommended domain setup, but does mean page builds take longer to show up since it has the benefit of using the GitHub CDN.

    0 讨论(0)
提交回复
热议问题