Skip to content

Commit

Permalink
Add cache busting for auto-generated icon font on compile
Browse files Browse the repository at this point in the history
  • Loading branch information
zoglo committed Nov 26, 2024
1 parent aaf48ed commit 60431fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Generator/IconGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ private function generateIconCSS($glyphs, $fontPath): ?string
// Add font-source
$css .= vsprintf("@font-face{font-family:%s;src:url('%s') format('woff%s');%s%s%s}", [
self::FONTFAMILY_ICON,
$fontPath,
$fontPath . '?' . time(),
$this->woffTwo?2:'',
'font-weight:normal;',
'font-style:normal;',
Expand Down

0 comments on commit 60431fe

Please sign in to comment.