From 08503b2f1397fe4cf6e0c859b9526546aef02a75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20G=C3=B3ral?= Date: Mon, 25 May 2020 12:56:07 +0200 Subject: [PATCH] fix(gatsby-remark-images-contentful): use `url` for cache key instead of `fileName` (#24338) Co-authored-by: gatsbybot --- packages/gatsby-remark-images-contentful/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gatsby-remark-images-contentful/src/index.js b/packages/gatsby-remark-images-contentful/src/index.js index 7060738a5770b..7132bf74d691b 100644 --- a/packages/gatsby-remark-images-contentful/src/index.js +++ b/packages/gatsby-remark-images-contentful/src/index.js @@ -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) {