Émile Perron

Git Version Strategy

A Symfony version strategy that uses your project's commit hash as a version identifier

Composer Git PHP Symfony Open-source
Git Version Strategy

Project overview

This is a small Symfony bundle that implements a custom version strategy which uses the current Git commit short-hash as the version identifier. This will change the URL of your assets from this: /css/style.css to something like /css/styles.css?v=b4703f8

Using your project's current commit hash as a version identifier will ensure that you assets always match the current version of your project by eliminating browser caching issues.

For more information, check out the GitHub repository that is linked below.