Skip to content

sidebar not refreshing without clearing cache #2547

Closed
@geohei

Description

@geohei

Question

Hi.

mdbook 0.4.44
Windows 10, Firefox and Ubuntu 24.04, Firefox (browser doesn't seem to make a difference)

The sidebar only refreshes on local browser (http://127.0.0.1:3000 from mdbuild serve).
On browser accessing remote server, I need to clear the browser cache (Firefox, CTRL+F5).
Chapter data refreshes correctly on both browsers, from local and remote server.

In other words - when I change my pages, the local version of ./book (sidebar and chapter data) is shown correctly on the local browser when mdbook serve is active. I only need to refresh. All good. However when I copy './book' to the server, the same data changes only shows the new chapter data, not the new sidebar data. I need to clear the browser cache (Firefox, CTRL F5) to make the new sidebar data show up.

Did I miss something or is this a bug related to invalidating caches?

Version

mdbook 0.4.44

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-questionCategory: A question on how to do something

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions