'Force users to use the latest version of a single page application (create-react-app)

Assuming my create-react-app-based application is deployed continuously on a Platform as a Service, is there a way to force users to use the latest version of the web application? When clients close their computers then reopen it a few days later, their page is sometimes the old version.

Is there a way to deal with this issue? I have no example in mind of an application that forces users to reload their page, still, this could be considered a legitimate issue.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source