Fix image cache for vector and animated images (#20480)
Fixes: https://github.com/vercel/next.js/issues/19100 > According to https://nextjs.org/docs/basic-features/image-optimization#caching Next.js populates a cache dir when using the new <Image /> component. This is not the case when using SVG files. This results in a performance penalty. I created a function for writing images to cache directory (`wrirteToCacheDir`) and it is called for all images. However, vector and animated images are not optimized before writing them to cache dir Related to #18179
Showing
Please
register
or
sign in
to comment