diff --git a/src/Helpers/FileOutput.php b/src/Helpers/FileOutput.php index a40abce..19428bf 100644 --- a/src/Helpers/FileOutput.php +++ b/src/Helpers/FileOutput.php @@ -70,12 +70,7 @@ public function write(string $path, array $attributes = []): void */ public function assetPath(string $path): string { - // if path is not a url or it's local url, we will append the cachebusting - if (! Str::startsWith($path, ['http://', 'https://', '://']) || Str::startsWith($path, url(''))) { - $path .= $this->cachebusting; - } - - $asset = Str::of(asset($path)); + $asset = Str::of(asset($path.$this->cachebusting)); if ($this->useRelativePaths && $asset->startsWith(url(''))) { $asset = $asset->after('//')->after('/')->start('/');