Magento 2 – issue with getting “version” number in static files path

Many people advised to DISABLE “Sign Static Files” from Admin Panel.

Stores > Configuration > Advanced > Developer > Sign Static Files

or to add the value directly in core_config_data table:

INSERT INTO core_config_data (config_id, scope, scope_id, path, value) VALUES (null, 'default', 0, 'dev/static/sign', 0);

or to update the value directly in core_config_data table:

UPDATE core_config_data SET value='0' WHERE path='dev/static/sign';

In my case, static file version number was not added in file URLs (in both development and production mode) (in different websites).

As we know, in production mode we don’t get DEVELOPER tab in Admin Panel ( Admin Panel > Stores > Configuration > Advanced > Developer).

What worked for me is, I tried removing ‘dev/static/sign’ record from core_config_data table:

DELETE FROM core_config_data WHERE path = 'dev/static/sign';

Then I compiled code again, refreshed cache and all okay now.

© 2025 Faraz Jafri All rights reserved. Privacy Policy

Proudly powered by WordPress. Special thanks to Bootstrap, FontAwesome & Open Source Community.