Next.js: Image component caching image

Created on 31 Oct 2020  路  4Comments  路  Source: vercel/next.js

Bug report

Describe the bug

Image component caching image unless there is a page refresh. This does not happen with a normal <img /> tag.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Clone https://github.com/vercel/next.js/tree/canary/examples/cms-contentful
  2. Open up components/cover-image.js
  3. Change out the <img /> for <Image /> from next/image
  4. Change src={url} to src={https:${url}} due to #18536
  5. Start up Next yarn dev
  6. Go to an article
  7. Click on an article from More Stories

    鈿狅笍 Don't forget to add the following to your next.config.js

module.exports = {
  images: {
    domains: ['images.ctfassets.net'],
  },
}

Expected behavior

Image from the new story should be the cover photo

Screenshots

next-image-component

System information

  • OS: Windows
  • Browser (if applies) Chrome
  • Version of Next.js: 10.0.0
  • Version of Node.js: 12.18.4
bug p0

All 4 comments

Thanks for reporting! I believe we're already tracking this but it doesn't hurt to have again.

@Timer, I couldn't find an open issue when I was searching, but maybe I just didn't search the right keywords.

18499

Closing since I found the duplicate above, thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rauchg picture rauchg  路  3Comments

formula349 picture formula349  路  3Comments

havefive picture havefive  路  3Comments

sospedra picture sospedra  路  3Comments

YarivGilad picture YarivGilad  路  3Comments