diff --git a/src/CachingStrategy/AssetCache.php b/src/CachingStrategy/AssetCache.php index c4dc039..5d3d576 100644 --- a/src/CachingStrategy/AssetCache.php +++ b/src/CachingStrategy/AssetCache.php @@ -93,7 +93,7 @@ private function getAssets(): array { $assets = []; foreach ($this->assetMapper->allAssets() as $asset) { - if (preg_match($this->workbox->assetCache->regex, $asset->sourcePath) === 1) { + if (preg_match($this->workbox->assetCache->regex, $asset->publicPath) === 1) { $assets[] = $asset->publicPath; } } diff --git a/src/CachingStrategy/FontCache.php b/src/CachingStrategy/FontCache.php index 827f96f..cf4f438 100644 --- a/src/CachingStrategy/FontCache.php +++ b/src/CachingStrategy/FontCache.php @@ -90,7 +90,7 @@ private function getFonts(): array { $fonts = []; foreach ($this->assetMapper->allAssets() as $asset) { - if (preg_match($this->workbox->fontCache->regex, $asset->sourcePath) === 1) { + if (preg_match($this->workbox->fontCache->regex, $asset->publicPath) === 1) { $fonts[] = $asset->publicPath; } }