You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 28, 2020. It is now read-only.
What we would need is to set a generated random string as assets_version (could be a random hash string, 16-bit or 32-bit long).
So could you enhance your bundle with a "random-feature"? Something like this would be cool: php app/console assets_version:set:random
(example) This will set assets_version to 9f37061554108afb4d884ee651585259
Our problem is, that we every time deploy a fresh release and our parameters.yml always still the same (until new parameters for new feature come in). So auto-increment doesn´t help us here. But we need a automated changing of assets_version. So generating a random hash string on every release would be our solution.
sorry for bad english;) Bye
The text was updated successfully, but these errors were encountered:
I am deliberately not adding assets_version:set:random command because I don’t find it safe. Although you can generate pretty long sequences of characters, there is still a chance of hitting the same value. If auto-incrementing of assets_version does fit the needs of your project, I’d recommend using a more controlled value. For example, this can be the current timestamp:
$ app/console assets_v:set $(date +"%s")
Setting parameter assets_version in assets_version.yml to '1427469781'...
Done. Clearing of prod cache is required.
Ok, thank you for your fast and clear answer ;)
This will help us a lot. And you are right, a random hash would be not really safe -> chance of hitting same value.
We will use a combination of timestamp + short hash. Only timestamp would be unsafe for us, because there is a chance that two (or more) installations are started at the absolute same time.
Thanks ;)
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi, nice bundle ;)
What we would need is to set a generated random string as assets_version (could be a random hash string, 16-bit or 32-bit long).
So could you enhance your bundle with a "random-feature"? Something like this would be cool:
php app/console assets_version:set:random
(example) This will set assets_version to
9f37061554108afb4d884ee651585259
Our problem is, that we every time deploy a fresh release and our parameters.yml always still the same (until new parameters for new feature come in). So auto-increment doesn´t help us here. But we need a automated changing of assets_version. So generating a random hash string on every release would be our solution.
sorry for bad english;) Bye
The text was updated successfully, but these errors were encountered: