As you may know, browsers will cache the old JS and CSS files, instead of updating them, as we upload our new version of the project into the server. This leads to errors on the client-side, forcing them to hard-refresh the browser.
A way to overcome this problem is for instance adding ?[version] at the end of the file as we call it:
Is there a way to do it automatically with SourceTree, after a commit or a tag realease? For example:
Thank you in advance
There isn't something specifically like this in SourceTree and I don't know when there will be (although voting for a ticket on replacement values is a good idea, or filing if there's not one)
That said, you should be able to accomplish something like this using pre or post commit hooks in git.
Senior Mac Developer, SourceTree
Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot