Web.assetUrl
Web.assetUrl($publicUrl) -> Url
Description
Add a browser cache-busting query parameter to a URL in the public
folder.
It takes a URL string and returns an updated URL string.
How It Works
This method takes the original URL and appends a v
parameter with the 'last updated' timestamp of the local file.
When the file is updated, the will parameter will change, causing browsers to request the updated file on their next visit.
Web.assetUrl(url'/images/hero.png') //= url'/images/hero.png?v=2463246626'