[Bug] Left nav menu changes not visible after changing TOC.yml, and intermittent loss of sub-menus (until Ctrl-F5 in browser)
- Dominant language
- C#
- Stars
- 4.4k
- Forks
- 890
- Avg merge
- 2h 11m
- Merged PRs (30d)
- 10
Description
**Describe the bug**
After changing a TOC.yml file (i.e. that controls a left nav menu) and rebuilding the DocFx site (i.e. complete replacement of all HTML files etc with a new set built from source), if a user continues browsing the site, the expected change to the left navigation menu is not seen. If the user reloads a page with "no cache" in browser (e.g. Ctrl-F5), the the change is seen.
NOTE: There is one other related issue, but which I cannot reproduce reliably, which is that (also after a rebuild) left nav menus loose their sub-menus (i.e. only top-level links are present) until Ctrl-F5 is pressed.
**To Reproduce**
Steps to reproduce the behavior:
1. Browse a working DocFx site and load a page with a left nav menu. Example:

2. Change the TOC.yml file controlling the left nav menu, e.g. add a new link.
3. Completely rebuild the site (delete all files and replace with new set built from source)
4. In the same browser session as used in step 1, refresh the page or browse other pages showing the same left nav. The change is not present. Example:

5. Reload the page with "no cache" in browser (e.g. Ctrl-F5). The change is present.

**Expected behavior**
After a site rebuild, changes to the left nav menus should be seen immediately. Left nav menus should not loose their sub-menus.
**Context:**
- OS: Windows 10
- Browser: Chrome 111.0.5563.147
- Docfx version: 2.64.0
**Additional context**
Using the new modern theme.
Contributor guide
Assessment
This issue has not been assessed yet.