页面不更新其内容

页面不更新其内容

本文介绍了为什么我的 GitHub 页面不更新其内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在关注官方指南@ pages.github.com

到目前为止,我已经创建了本地存储库并将其推送到 GitHub,但是,无论我做什么更改,我都可以在 GitHub 的存储库中看到它,但在我的 GitHub 页面中.这怎么可能?

So far I've created the local repo and pushed it to GitHub, but, whatever change I do, I can see it in my repo at GitHub but not in my GitHub page. How is that possible?

推荐答案

聚会有点晚,但我刚刚遇到了这个问题,我的解决方案不在上述任何范围内.

A bit late to the party but I just had this issue and my solution isn't covered by any of the above.

具体来说,我的问题如下:

Specifically my issue was the following:

  • 我使用自定义域创建了一个 github.pages 站点.
  • 我正在将提交推送到正确 GitHub 分支,但在 github.pages 站点上没有看到更新.
  • I had created a github.pages site with a custom domain.
  • I was pushing commits to the correct GitHub branch but not seeing the updates on the github.pages site.

解决方案:问题原来是我的浏览器缓存了页面(尽管我禁用了页面缓存).为了解决这个问题,我刚刚清除了过去一小时的缓存数据,并且立即生效.

Solution:The issue turned out to be my browser caching the page (despite my having page caching disabled). To fix it I just cleared my cached data from the past hour and that worked instantly.

要清除 Chrome 中的缓存数据,请转到 Chrome 菜单,然后 More Tools >清除浏览数据.

To clear the cache data in Chrome go to the Chrome menu then More Tools > Clear Browsing Data.

我不知道是什么导致了缓存,这个 github.pages/custom 域组合是唯一导致我缓存的东西.

I don't know what caused the caching, this github.pages/custom domain combo is the only thing that has ever caused it for me.

这篇关于为什么我的 GitHub 页面不更新其内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-22 23:19