gatsby-source-sanity-transform-images icon indicating copy to clipboard operation
gatsby-source-sanity-transform-images copied to clipboard

Caching already downloaded images?

Open kevinfoerster opened this issue 5 years ago • 3 comments

Hi,

I was wondering, is there any way, the plugin could cache the downloaded resources instead of redownloading them every time I run gatsby develop?

at the moment it looks like this images are not cached and will be discarded on each restart… which takes a while to download (currently downloading 1700+ images for each run).

kevinfoerster avatar Mar 10 '20 22:03 kevinfoerster

+1 for this

chandlervdw avatar Jun 18 '20 17:06 chandlervdw

@kevinfoerster thanks for your feedback. I have the same issue and I can relate to that. Caching and invalidating cached data properly is a hard problem. I'll think about it.

alexlobera avatar Jul 06 '20 15:07 alexlobera

I definitely agree this would be a great addition to have by default. I looked at another similar package gatsby-plugin-remote-images and saw that their implementation uses gatsby’s caching (1, 2). I think we could adapt it here too 😄 did anyone find a stopgap solution in the meantime?

jlarmstrongiv avatar Sep 25 '20 16:09 jlarmstrongiv