Using Static File Signatures

Adding a digital signature to the URL of static files makes it possible for browsers to detect when a newer version of the file is available. Static files that can be tracked with digital signatures include JavaScript, CSS, images, and fonts. The signature is appended to the path directly after the base URL. If a file’s signature differs from what is currently stored in the browser’s cache, then the newer version of the file is used.

See Static content signing in the developer documentation.

The Static File Settings configuration is available only when working in developer mode.


Static File Settings

To enable signed static files:

  1. On the Admin sidebar, click Stores.

  2. Under Settings, choose Configuration.

  3. In the panel on the left under Advanced, choose Developer.

  4. Expand the Static Files Settings section.

  5. Set Sign Static Files to Yes.

  6. When complete, click Save Config.