Image Optimization loads also original image #36034
Labels
bug
Issue was opened via the bug report template.
Image (next/image)
Related to Next.js Image Optimization.
Verify canary release
Provide environment information
What browser are you using? (if relevant)
Chrome 100.0.4896.75
How are you deploying your application? (if relevant)
next start (PM2)
Describe the Bug
I'm using the built-in image optimization of Next.js to optimize the images from my headless CMS. When I have a look in the Network tab of the dev tools in Chrome I see that there is also the original image requested from the CMS. Is that the correct behavior? I don't think so because then I could also display the original image directly on the page without optimization.
The original images are more than 1 MB in some cases on my site, which influences the performance of the site negatively.
Expected Behavior
The expected behavior is that Next.js requests the original image from the CMS on the server-side, optimizes it, and responses to the client with only the optimized image.
To Reproduce
npm start
in production and check your Network tab when reloading the page.The text was updated successfully, but these errors were encountered: