Append a cache-busting query parameter to an asset URL.
Relative path to the asset (e.g. css/styles.css)
css/styles.css
Cache-bust configuration with the build hash
URL with ?v=<buildShort> appended
?v=<buildShort>
cacheBustUrl('css/styles.css', { buildShort: 'abc1234', appVersion: '0.8.59' })// → 'css/styles.css?v=abc1234' Copy
cacheBustUrl('css/styles.css', { buildShort: 'abc1234', appVersion: '0.8.59' })// → 'css/styles.css?v=abc1234'
Append a cache-busting query parameter to an asset URL.