Version: v0.7.0 - Beta.  We welcome contributors & feedback.


Web.assetUrl($publicUrl) -> Url


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.


//= url'/images/hero.png?v=2463246626'

See Also