Ques/Help How to implement cachebusting / versioning for an external file called within a template

B

bzcomputers

Guest
At times I call external .css and .js within templates. I would like to able to use XenForo's built in cache busting for this. Without referencing PHP filemtime directly within a template what is the best way to go about this?

Sample css reference within template:

Code:

<link rel="stylesheet" href="https://www.mysite.com/styles/custom.css" type="text/css" />

Continue reading...