Skip to content

Page refresh vs temporary 404 #160

Description

@mortenpi

So, I am using vanilla serve and not servedocs, and I build the docs in a separate process. During that build, Documenter temporarily wipes the .html files, but it takes a short while for the new .html files to get rendered.

As far as I can tell, when the old HTML files get deleted, LiveServer tries to auto-refresh the page, and will then show me a 404. That 404, however, does not seem to auto-refresh when the new HTML files are generated. I basically "get stuck" on the 404 page, even after the HTML file has been re-generated, and have to F5 the page when I switch to that tab.

Unless I have missed something, I can think of two ways this could be handled:

  1. Don't auto-refresh the page when the HTML page has been removed. Rather, keep showing the old page. Only refresh when a new HTML page gets created.
  2. Auto-refresh the 404 page as well. It seems like that's not happening.

Or, potentially, even both 🙂

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    404bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions