How to enable or disable the static content signing?

static-content
configuration-advanced
configuration
static-content-signing

(Dmitry Fedyuk) #1

«Stores» → «Configuration» → «Advanced» → «Developer» → «Static Files Settings» → «Sign Static Files»


What is the static content signing?
What is the «deployed_version.txt» file for?
[Stripe] «You passed an empty string for 'owner[name]'»
(Dmitry Fedyuk) #2

See also:


(Dmitry Fedyuk) #3

You can do it from the command line too:

mysql --host=<host> --user=<user> --password=<password> -D <database> -e "\
	UPDATE core_config_data SET value = <1 or 0> WHERE 'dev/static/sign' = path; \
";

Then delete the cache:

bin/magento cache:clean

How to disable the «Merge JavaScript Files» option from the command line?
How to disable the «Minify JavaScript Files» option from the command line?
How to disable the «Enable Javascript Bundling» option from the command line?
How to disable the «Merge CSS Files» option from the command line?
How to disable the «Minify CSS Files» option from the command line?
How to set «GD2» as the default image adapter from the command line?
(Dmitry Fedyuk) #4

In Magento >= 2.2 you can do it as

bin/magento config:set dev/static/sign <1 or 0>
bin/magento cache:clean

(Dmitry Fedyuk) #5

See also: