Skip to content

Commit

Permalink
Fix regex patterns for Cloudinary and Fanart URLs in Vite configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
lucienimmink committed Nov 10, 2024
1 parent fcccf32 commit 4d299b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export default defineConfig(({ mode }) => {
},
{
urlPattern:
/.*\.png$|.*\.gif$|.*\.jpg$|.*\.webp$|https:\/\/res.cloudinary.com\/.*/i,
/.*\.png$|.*\.gif$|.*\.jpg$|.*\.webp$|https:\/\/res\.cloudinary\.com\/.*/i,
handler: 'CacheFirst',
options: {
cacheName: 'images',
Expand All @@ -223,7 +223,7 @@ export default defineConfig(({ mode }) => {
},
{
urlPattern:
/https:\/\/webservice.fanart.tv\/$|.*image\?mbid.*$|https:\/\/ws.audioscrobbler.com\/2\.0\/.*$|https:\/\/coverartarchive.org\/.*$/i,
/https:\/\/webservice\.fanart\.tv\/$|.*image\?mbid.*$|https:\/\/ws\.audioscrobbler\.com\/2\.0\/.*$|https:\/\/coverartarchive\.org\/.*$/i,
handler: 'CacheFirst',
options: {
cacheName: 'XHR',
Expand Down

0 comments on commit 4d299b2

Please sign in to comment.