Skip to content

Commit

Permalink
Fix regex pattern for image caching in Vite configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
lucienimmink committed Nov 10, 2024
1 parent 24c1712 commit fcccf32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 Down

0 comments on commit fcccf32

Please sign in to comment.