markup icon indicating copy to clipboard operation
markup copied to clipboard

Serving of new files as HTML pages confusingly delayed

Open pbodnar opened this issue 5 years ago • 1 comments

It looks like one sometimes needs to make another commit to the repository in order to get previously added files as HTML pages, when using the "GitHub Pages" functionality. Otherwise one gets only "404 Not Found" when trying to access those new files even after several minutes.

The behavior seems to be a bit random, or dependent on the exact changes flow - sometimes, the new page is served right away without user intervention, sometimes not.

Reproduction

Here is one of the possible reproduction steps:

  1. Create a new user repository.
  2. Add README.md to it.
  3. Add another.md to it.
  4. Go to project Settings and activate the "GitHub Pages" from there (select master branch as the source).
  5. Try to go to https://<user>.github.io/<repository>/ (index page - it should be created from the README.md) or to https://<user>.github.io/<repository>/another (this should render the HTML from another.md).

Error: You'll get "404 Not Found" error when trying to access those pages. And pressing Ctrl+F5 for forced page reload doesn't help.

Workaround: For example, add another ".md" file to the repository. Again, it won't get visible as an HTML page, but the previously added files get visible now.

Expected behavior

Every change made should be visible as a corresponding HTML page right away. Or at least there should be some information that the changes are yet to become effective - there is no such thing on the /deployments page - it just says <commitId> was deployed by @github-pages GitHub Pages 3 minutes ago (Active) even when the pages added in the linked commit are not visible even after 5 minutes.

pbodnar avatar Jun 21 '20 11:06 pbodnar

Maybe I should have reported this on https://github.com/github/pages-gem/ instead?

pbodnar avatar Jun 22 '20 06:06 pbodnar

Stale issue message

github-actions[bot] avatar Oct 31 '24 12:10 github-actions[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Feb 23 '25 12:02 github-actions[bot]