Skip to content

Commit

Permalink
fix(gatsby-remark-images-contentful): use url for cache key instead…
Browse files Browse the repository at this point in the history
… of `fileName` (gatsbyjs#24338)

Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
  • Loading branch information
jagoral and gatsbybot committed May 25, 2020
1 parent 5389bfd commit 08503b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-remark-images-contentful/src/index.js
Expand Up @@ -62,7 +62,7 @@ module.exports = async (

const optionsHash = createContentDigest(options)

const cacheKey = `remark-images-ctf-${fileName}-${optionsHash}`
const cacheKey = `remark-images-ctf-${node.url}-${optionsHash}`
let cachedRawHTML = await cache.get(cacheKey)

if (cachedRawHTML) {
Expand Down

0 comments on commit 08503b2

Please sign in to comment.