Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Improve fast render mode #5281
In Hugo server's fast render mode (the default), we keep a stack of the recent browser history + the home pages. On rebuilds, we re-render only those. This works great, most of the time. But if you then navigate to a totally different page in the browser, you may see stale content until you do another edit.
To "render a page" in Hugo is normally very cheap, so can keep the fast render logic as it is today and when the user navigates to a new page in the browser:
The above trades away some potential double work (should be negligible) for a very simple and robust implementation.