I'm currently preloading font files for one webpage on WordPress.
So https://example.com
not preloaded. https://example.com/test/
preloaded font file.
This is what I've got in .htaccess
.
<Files "/test/">
Header add Link "</fonts/poppins.woff2>; rel=preload; as=font; type=font/woff2; crossorigin"
</Files>`
The link works fine, it's the conditional loading that I'm struggling with. Tried adding wildcards, plus the full URL, etc, but no joy.
Am I right in thinking it's not the syntax, but it needs allowing before it works?