- add filter
$ git config filter.nocache.smudge "perl -pe 'BEGIN {\$h = \`git log --pretty=format:\"%H\" -1\`; } s{\\?[A-z0-9]*#cache-bust}{?\$h#cache-bust}g'"
$ git config filter.nocache.clean "perl -pe 's{\\?[A-z0-9]*#cache-bust}{?nocache#cache-bust}g'"
- edit .gitattributes
*.html filter=nocache