locationreload
Location.reload is a method of the Window Location interface in web browsers that reloads the current document. It can be invoked as window.location.reload(), with an optional boolean argument named forcedReload that affects how the reload is performed.
If forcedReload is true, the request bypasses the browser cache and fetches the page from the origin
Behavior: The call initiates a navigation to the same URL, triggering the page lifecycle events such as
Cross-origin note: Location.reload reloads the current URL on the same origin and does not navigate to a
Alternatives and considerations: To refresh a page without altering history, you can use location.reload() or location.href