Magento 2 Remove Version Number In File Paths

In this blog post, we will remove version number in file paths in Magento2.

We can disable the admin setting in below path:

Stores > Configuration > Advanced > Developer > Sign Static Files

OR

We can change this setting from directly core_config_data database table by running following query:

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

That’s it! You are done.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s