I’m not sure if this is possible with Zola, that’s why I’m asking here:
I load my style.css
by utilising get_url
with cachebust=true
:
<link rel="stylesheet" href="{{ get_url(path="/style.css", cachebust=true) }}">
I’m currently also preloading my font using rel="preload"
:
<link rel="preload" href="/fonts/my-font.woff2" as="font" type="font/woff2" crossorigin>
I would like to utilise cache busting but this doesn’t work as my SASS font-face
does not know about the hash that cachebust=true
will generate and append to the href
for the font preload:
@font-face {
font-family: "My Font";
font-weight: 200 900;
font-stretch: 75% 125%;
src: url("/fonts/my-font.woff2") format("woff2 supports variations"),
url("/fonts/my-font.woff2") format("woff2-variations");
}
Is there a way to make this “cache bustable”?