changes the URL every time the file's contents change, so * it's always treated as a brand new resource rather than a cached one. * * Usage: * */ function asset_version(string $relativePath): string { $path = dirname(__DIR__) . '/' . ltrim($relativePath, '/'); $mtime = @filemtime($path); return $mtime !== false ? '?v=' . $mtime : ''; }