Using Static File Signatures
See Static content signing in the developer documentation.
The Static File Settings configuration is available only when working in developer mode.
To enable signed static files:
On the Admin sidebar, click Stores.
Under Settings, choose Configuration.
In the panel on the left under Advanced, choose Developer.
Expand the Static Files Settings section.
Set Sign Static Files to
When complete, click Save Config.