Get a cache busting URL for given asset/file URL
If given a URL including scheme+hostname then it will be retained in the returned URL.
Usage
// basic usage
$string = $buster->url(string $url);
// usage with all arguments
$string = $buster->url(string $url, array $options = []);
Arguments
Name | Type(s) | Description |
---|---|---|
url | string | Full URL to file (hostname optional) |
options (optional) | array |
|
Return value
string
URL modified with cache busting string in query string
$buster methods and properties
API reference based on ProcessWire core version 3.0.236