-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
good first issueEasy to fix issues, good for newcomersEasy to fix issues, good for newcomers
Milestone
Description
Bug report
Describe the bug
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.
To Reproduce
- Use the new
<Image />component in combination with an SVG image. - Build for production
npm run build - Start your app
npm start - Visit the page
- Check
<distDir>/cache/images - No files have been generated!
Expected behavior
I'd expect to see the generated files in the cache directory. Even when the files can't be optimized the files should be served from the filesystem on subsequent calls.
System information
- OS: Ubuntu
- Browser (if applies) chrome
- Version of Next.js: 10.0.1
- Version of Node.js: 12.19.0
Metadata
Metadata
Assignees
Labels
good first issueEasy to fix issues, good for newcomersEasy to fix issues, good for newcomers